Skip to content

Commit 93fbd41

Browse files
committed
fixing the workflow to see github tags
1 parent 594f345 commit 93fbd41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ jobs:
5353
VERSION=$(python -c "import re; import setuptools; f=open('setup.py'); print(re.search(r'version\s*=\s*[\"\\'](.+?)[\"\\']', f.read()).group(1))")
5454
echo "Version=${VERSION}" >> $GITHUB_ENV
5555
56+
# in YAML
5657
- name: Check if version changed
5758
id: version_check
5859
run: |
60+
git fetch --tags # make sure all remote tags are available
5961
LAST_TAG=$(git describe --tags --abbrev=0 || echo "0.0.0")
6062
echo "Last tag: $LAST_TAG"
6163
echo "Current version: $VERSION"
6264
if [ "$LAST_TAG" = "v$VERSION" ]; then
6365
echo "Version not changed, skipping release."
64-
exit 78 # neutral
66+
exit 78
6567
fi
6668
6769
- name: Build distribution

0 commit comments

Comments
 (0)