diff --git a/.github/workflows/shared_check_maintainer.yml b/.github/workflows/shared_check_maintainer.yml index bf2b3399e8cb8..6ea841d56f73e 100644 --- a/.github/workflows/shared_check_maintainer.yml +++ b/.github/workflows/shared_check_maintainer.yml @@ -33,7 +33,13 @@ jobs: script: | const fs = require('fs'); const actor = '${{ inputs.actor }}'; - const isRemote = ${{ inputs.is_remote }}; + let isRemote = ${{ inputs.is_remote }}; + if (typeof isRemote === 'string') { + isRemote = isRemote === 'true'; + } + if (typeof isRemote !== 'boolean') { + throw new Error(`Invalid `isRemote` input. Expected a boolean, got: ${isRemote}`); + } let content = null; if (isRemote === true) {