Skip to content

Commit 9245ba5

Browse files
committed
Added --always to git describe
1 parent f50fd89 commit 9245ba5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-to-pypi-on-new-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- id: project
2121
run: |
2222
git fetch --tags
23-
TAG=$(git describe --tags --abbrev=0)
23+
TAG=$(git describe --tags --abbrev=0 --always)
2424
echo "The tag is: $TAG"
2525
PROJECT=$(echo "$TAG" | sed -E 's/-\d+(\.\d+)+$//') # e.g. sys-lang-1.0.4 -> sys-lang
2626
echo "PROJECT=$PROJECT" >> $GITHUB_ENV

0 commit comments

Comments
 (0)