[ci] Parse inputs for maintainer check workflow (#32216)
I forgot that workflow calls stringify their inputs
lauren committed
Jan 24, 2025 at 14:56 UTC
5269823927e1ba0ea14a64478b28c02ba5f0de3e
1 file changed
+7
-1
.github/workflows/shared_check_maintainer.yml
+7
-1
@@ -33,7 +33,13 @@ jobs:
33
script: |
34
const fs = require('fs');
35
const actor = '${{ inputs.actor }}';
36
- const isRemote = ${{ inputs.is_remote }};
36
+ let isRemote = ${{ inputs.is_remote }};
37
+ if (typeof isRemote === 'string') {
38
+ isRemote = isRemote === 'true';
39
+ }
40
+ if (typeof isRemote !== 'boolean') {
41
+ throw new Error(`Invalid `isRemote` input. Expected a boolean, got: ${isRemote}`);
42
+ }
43
44
let content = null;
45
if (isRemote === true) {