We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 594f345 commit 93fbd41Copy full SHA for 93fbd41
.github/workflows/release.yaml
@@ -53,15 +53,17 @@ jobs:
53
VERSION=$(python -c "import re; import setuptools; f=open('setup.py'); print(re.search(r'version\s*=\s*[\"\\'](.+?)[\"\\']', f.read()).group(1))")
54
echo "Version=${VERSION}" >> $GITHUB_ENV
55
56
+ # in YAML
57
- name: Check if version changed
58
id: version_check
59
run: |
60
+ git fetch --tags # make sure all remote tags are available
61
LAST_TAG=$(git describe --tags --abbrev=0 || echo "0.0.0")
62
echo "Last tag: $LAST_TAG"
63
echo "Current version: $VERSION"
64
if [ "$LAST_TAG" = "v$VERSION" ]; then
65
echo "Version not changed, skipping release."
- exit 78 # neutral
66
+ exit 78
67
fi
68
69
- name: Build distribution
0 commit comments