From 30cf36e3295697af0cfe479f1e12da9c7cfe1edf Mon Sep 17 00:00:00 2001 From: Stian Soiland-Reyes Date: Wed, 22 Jul 2020 16:00:33 +0100 Subject: [PATCH] Expects refs/tags/ pattern --- .github/workflows/python-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5f9cc27..cdd32cc 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,7 +25,8 @@ jobs: - name: Check tag name matches setup.py version run: | ver=`python setup.py --version` - if [[ "$ver" != $GITHUB_REF ]] + tag="refs/tags/$ver" + if [[ "$tag" != $GITHUB_REF ]] then echo Tag $GITHUB_REF does not match $ver from setup.py >&2 echo Please update rocrate/_version.py false