From b566eba5ddfc4ff85a36eb8666e93d769edee181 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Fri, 13 Nov 2026 17:55:50 +0100 Subject: [PATCH] Convert the `pull-request` input to a number A `workflow_dispatch` number input reaches the `inputs` context as a string, so the reusable workflow rejected both an empty value and `0` for its `number` input. Convert it with `fromJSON`, falling back to `0` when the input is blank. The reusable workflow treats `0` as unset. --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a2c67ef..4ca6499 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -29,7 +29,7 @@ jobs: pull-requests: write uses: MetaMask/github-tools/.github/workflows/publish-preview-oidc.yml@v1 with: - pull-request: ${{ inputs.pull-request }} + pull-request: ${{ fromJSON(inputs.pull-request || '0') }} branch: ${{ inputs.branch }} dry-run: ${{ inputs.dry-run }} environment: default-branch