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]