Skip to content

Commit 0696db0

Browse files
chore: tag releases on merge commit (#1247)
1 parent fa9fb78 commit 0696db0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/tag-on-merge.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ jobs:
3131
- name: Create and push tag
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
# Use the PR head SHA so the tag points to the actual release commit,
35-
# not the merge commit on main.
36-
RELEASE_SHA: ${{ github.event.pull_request.head.sha }}
3734
run: |
3835
git config user.name "github-actions[bot]"
3936
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
40-
41-
git tag ${{ steps.version.outputs.version }} $RELEASE_SHA
37+
38+
git tag ${{ steps.version.outputs.version }}
4239
git push origin ${{ steps.version.outputs.version }}
4340
4441
- name: Extract changelog for release

0 commit comments

Comments
 (0)