Skip to content

Commit caeeb54

Browse files
committed
[ci] Parse inputs for maintainer check workflow
I forgot that workflow calls stringify their inputs
1 parent 0f8a1e0 commit caeeb54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/shared_check_maintainer.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ jobs:
3333
script: |
3434
const fs = require('fs');
3535
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+
}
3743
3844
let content = null;
3945
if (isRemote === true) {

0 commit comments

Comments
 (0)