Skip to content

Commit 30cf36e

Browse files
committed
Expects refs/tags/ pattern
1 parent dfc92e2 commit 30cf36e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
- name: Check tag name matches setup.py version
2626
run: |
2727
ver=`python setup.py --version`
28-
if [[ "$ver" != $GITHUB_REF ]]
28+
tag="refs/tags/$ver"
29+
if [[ "$tag" != $GITHUB_REF ]]
2930
then echo Tag $GITHUB_REF does not match $ver from setup.py >&2
3031
echo Please update rocrate/_version.py
3132
false

0 commit comments

Comments
 (0)