From fb95e3c88c985d787d4d5c4dfa3674cb87519700 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Sat, 24 Feb 2024 11:31:31 +0900 Subject: [PATCH] ci: fix get-pr-number job --- .github/workflows/release-please.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d9b0cd1..5dff18c 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -66,8 +66,10 @@ jobs: steps: - name: Get PR number id: pr-number + env: + HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} run: | - echo "pr_number=$(printf '${{ github.event.head_commit.message }}' | head -n1 | sed -nE 's/.+\(#([0-9]+)\)$/\1/p')" >> "$GITHUB_OUTPUT" + echo "pr_number=$(printf "$HEAD_COMMIT_MESSAGE" | head -n1 | sed -nE 's/.+\(#([0-9]+)\)$/\1/p')" >> "$GITHUB_OUTPUT" update-release-comment: needs: [release-please, publish-release, get-pr-number]