File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 7171 if : ${{ startsWith(github.ref, 'refs/tags') }}
7272 run : |
7373 # Set tag from GitHub: using git describe for tags inside the run script
74- # seems not working
75- echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
74+ # seems not working - I think this because you need _annotated_ tags
75+ # for git describe i.e. you need to tag the release as so:
76+ # 'git tag vX.Y.Z -a -m "YOUR MESSAGE HERE"'
77+ # echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
78+ echo "VERSION=${ git describe }" >> $GITHUB_ENV
7679
7780 - name : Install dependencies
7881 run : |
@@ -134,7 +137,7 @@ jobs:
134137 # for git describe i.e. you need to tag the release as so:
135138 # 'git tag vX.Y.Z -a -m "YOUR MESSAGE HERE"'
136139 # echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
137- echo "VERSION=${git describe}" >> $GITHUB_ENV
140+ echo "VERSION=${ git describe }" >> $GITHUB_ENV
138141
139142 # setuptools_scm workaround for https://github.com/pypa/setuptools_scm/issues/455
140143 - name : Disable local version identifier on develop CI
You can’t perform that action at this time.
0 commit comments