From ed186862d7c978fec8d2f57b28340baf0a4e96c3 Mon Sep 17 00:00:00 2001 From: boleklebovski <160799963+boleklebovski@users.noreply.github.com> Date: Thu, 27 Aug 2026 23:46:56 +0200 Subject: [PATCH] fix(ci): replace the disabled ::set-output command with $GITHUB_OUTPUT GitHub disabled ::set-output in runner 2.298.2. Both outputs are consumed: the bundle-analysis comment body, and the PR number that becomes issue_number for the CI-run comment, which resolves to 0 when empty. Also drops the percent-encoding that ::set-output required. Signed-off-by: boleklebovski <160799963+boleklebovski@users.noreply.github.com> --- .github/actions/analyze-comment/action.yml | 10 +++++----- .github/workflows/test-deploy-fork.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/analyze-comment/action.yml b/.github/actions/analyze-comment/action.yml index fa54892412..ec575d3930 100644 --- a/.github/actions/analyze-comment/action.yml +++ b/.github/actions/analyze-comment/action.yml @@ -73,11 +73,11 @@ runs: if: github.event_name != 'push' shell: bash run: | - body=$(cat .next/analyze/__bundle_analysis_comment.txt) - body="${body//'%'/'%25'}" - body="${body//$'\n'/'%0A'}" - body="${body//$'\r'/'%0D'}" - echo ::set-output name=body::$body + { + echo 'body<> "$GITHUB_OUTPUT" - name: Find Comment uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d # v2.0.0 diff --git a/.github/workflows/test-deploy-fork.yml b/.github/workflows/test-deploy-fork.yml index b8bf1db4d5..a8c1c37d7b 100644 --- a/.github/workflows/test-deploy-fork.yml +++ b/.github/workflows/test-deploy-fork.yml @@ -40,7 +40,7 @@ jobs: shell: sh id: get_pr_number run: | - echo "::set-output name=pr_number::$(cat NUM | tr -dc '[:digit:]')" + echo "pr_number=$(cat NUM | tr -dc '[:digit:]')" >> "$GITHUB_OUTPUT" - name: Link this CI run to PR uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0