From caeeb541722dba1096875bbdfe10b25dea779643 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Fri, 24 Jan 2025 14:49:36 -0500 Subject: [PATCH] [ci] Parse inputs for maintainer check workflow I forgot that workflow calls stringify their inputs --- .github/workflows/shared_check_maintainer.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) {