Skip to content

Commit 88861d1

Browse files
committed
ci: avoid hardcoding the branch name in publish.yml
1 parent de94bc2 commit 88861d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020
# Needed for commit and push changes
2121
with:
22-
# TODO: Try to not hardcode the branch name
23-
ref: master
24-
fetch-depth: 0 # To get all tags
22+
ref: ${{ github.head_ref }}
23+
fetch-tags: true
2524

2625
- name: 📄 Upload LICENSE file to release assets
2726
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)