Skip to content

Commit b9bba92

Browse files
fix: Use HEAD SHA from main branch rather than default branch (#549)
1 parent 0ceb780 commit b9bba92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/remote-release-trigger.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ jobs:
5656
5757
return "v" + cli_version_segments.join(".")
5858
59+
- name: Calculate the SHA of HEAD on the main branch
60+
id: calculate_head_sha
61+
run: echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
62+
5963
- uses: rickstaa/action-create-tag@84c90e6ba79b47b5147dcb11ff25d6a0e06238ba # pin@v1
6064
with:
6165
tag: ${{ steps.calculate_version.outputs.result }}
66+
commit_sha: ${{ steps.calculate_head_sha.outputs.commit_sha }}
6267

6368
- name: Release
6469
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1

0 commit comments

Comments
 (0)