[ci] Parse inputs for maintainer check workflow (#32216)

I forgot that workflow calls stringify their inputs
This commit is contained in:
lauren
2025-01-24 14:56:37 -05:00
committed by GitHub
parent 0f8a1e02ff
commit 5269823927

View File

@@ -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) {