From e06e538c0a8b95bf4ebbbe6b531e393f04172ab8 Mon Sep 17 00:00:00 2001 From: Yuki Fujisaki Date: Fri, 15 May 2026 12:10:10 +0900 Subject: [PATCH] fix(ci): avoid fromJSON in step env so the bundle-commit step skips cleanly Step-level env expressions are evaluated even when the step is skipped by if, so fromJSON('') fails when release-please opens no PR. Pass the raw output as env and parse with jq inside the run script. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 585a625..d9c386b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,9 @@ jobs: - if: ${{ steps.release.outputs.prs_created == 'true' }} env: - BRANCH: ${{ fromJSON(steps.release.outputs.pr).headBranchName }} + PR_OUTPUT: ${{ steps.release.outputs.pr }} run: | + BRANCH=$(printf '%s' "$PR_OUTPUT" | jq -r .headBranchName) git config user.name "release-please[bot]" git config user.email "release-please[bot]@users.noreply.github.com" git add plugin/scripts/bundle.js