Skip to content

Commit

Permalink
ci: fix "Get PR number" step (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Feb 24, 2024
1 parent ea7c15c commit e5443df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ jobs:
gh label create 'autorelease: published' --color=EDEDED || true
- 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"
- name: Change labels on PR
run: |
gh pr edit ${{ steps.pr-number.outputs.pr_number }} \
Expand Down

0 comments on commit e5443df

Please sign in to comment.