Skip to content

Commit

Permalink
Fixes commit SHA in release.
Browse files Browse the repository at this point in the history
Same as in v8build.
  • Loading branch information
tommie authored Aug 7, 2024
1 parent 6a6ee8e commit f26d5e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ jobs:
run: |
changelog='${{ steps.commit_changelog.outputs.commit_long_sha }}'
original='${{ github.sha }}'
echo "commit=${changelog:-$original}" >>"$GITHUB_OUTPUT"
# When using push: origin HEAD:x, the status output looks like "HEAD x".
commit_sha="${changelog:-$original}"
commit_sha="${commit_sha#HEAD }"
echo "commit=$commit_sha" >>"$GITHUB_OUTPUT"
- id: create_release
name: Create Release
Expand Down

0 comments on commit f26d5e6

Please sign in to comment.