mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[ci] Parse inputs for maintainer check workflow (#32216)
I forgot that workflow calls stringify their inputs
This commit is contained in:
1 parent
0f8a1e02ff
commit
5269823927
1 file changed
+7
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user