File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1616 container : debian:oldstable-slim
1717 env :
1818 release_name : release-linux-x86_64
19- VERSION : ${{ contains(github.ref_name, 'v1.3.0') && github.ref_name || 'v1.3.0-' ${GITHUB_SHA:0:8} }}
19+ COMMIT_SHA8 : ${GITHUB_SHA:0:8}
20+ VERSION : >-
21+ ${{ ( ( startsWith(github.ref, 'refs/tags') && github.ref_name ) ||
22+ ( startsWith(github.ref_name, 'v1.3.0') && github.ref_name ) ||
23+ ( 'v1.3.0-' env.COMMIT_SHA8 ) ) }}
2024
2125 steps :
26+ # - name: set version by tag name (as alternative to above)
27+ # run: echo ${{ join('VERSION=', github.ref_name) }} >> $GITHUB_ENV
28+ # if: ${{ ... }}
2229 - name : dependencies
2330 run : |
2431 apt update -y
@@ -35,10 +42,11 @@ jobs:
3542 rsync \
3643 git
3744 - uses : actions/checkout@v6
38- with :
39- fetch-tags : true
40- - name : Git unsafe
41- run : git config --global --add safe.directory /__w/tremulous/tremulous
45+ # # attempts for setting version via tag, but doesn't work for shallow copy:
46+ # with:
47+ # fetch-tags: true
48+ # - name: Git unsafe
49+ # run: git config --global --add safe.directory /__w/tremulous/tremulous
4250 - name : make
4351 run : USE_RESTCLIENT=1 USE_INTERNAL_LUA=1 USE_CURL_DLOPEN=0 make -j
4452 - name : download paks
You can’t perform that action at this time.
0 commit comments