Skip to content

Commit 1137298

Browse files
committed
try to get the current git branch
1 parent 25b060e commit 1137298

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
contents: write
2222

2323
steps:
24-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- name: Get Spec Source
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2526
with:
2627
submodules: recursive
2728
# If fetch-depth: 0 is not specified, then
@@ -40,6 +41,13 @@ jobs:
4041
git config --global --add safe.directory '*'
4142
ls -lda . .. .git Makefile
4243
44+
- name: Refresh Git Information
45+
if: startsWith(github.ref, 'refs/tags/')
46+
shell: bash
47+
run: |
48+
git fetch --force --tags
49+
git checkout "${GITHUB_REF_NAME}"
50+
4351
- name: Build Specs
4452
run: |
4553
python3 makeSpec -clean -spec core OUTDIR=out.release -j 5 api c env ext cxx4opencl

0 commit comments

Comments
 (0)