Skip to content

Commit d6132be

Browse files
committed
explicitly checkout ${{ github.ref }} when doing a release
This is required for the tag to be properly checked out, as a workaround for actions/checkout#1638
1 parent 2159e72 commit d6132be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
runs-on: ubuntu-24.04
1717
steps:
1818
- uses: actions/checkout@v6
19+
# the "ref: github.ref" is required for the tag to be properly checked out, as a workaround
20+
# for https://github.com/actions/checkout/issues/1638
21+
with:
22+
fetch-depth: 0
23+
fetch-tags: true
24+
ref: ${{ github.ref }}
1925
- name: Build tarball
2026
run: make dist
2127
- name: Upload tarball to GitHub cache

0 commit comments

Comments
 (0)