Skip to content

Commit

Permalink
ci: add target_commitish to release
Browse files Browse the repository at this point in the history
By default, the release action will use the HEAD commit of current branch as the target commitish.
If there are some new commits pushed to the branch after the release action is triggered,
the release action may create a release on the wrong commit.
  • Loading branch information
wangl-cc committed Dec 29, 2024
1 parent 2a2c6c8 commit 15018b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ jobs:
with:
name: v${{ needs.meta.outputs.version }}
tag_name: ${{ needs.meta.outputs.tag }}
target_commitish: ${{ needs.meta.outputs.commit }}
prerelease: ${{ fromJson(needs.meta.outputs.prerelease) }}
body: ${{ needs.release-note.outputs.content }}
fail_on_unmatched_files: true
Expand Down

0 comments on commit 15018b2

Please sign in to comment.