We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7524c0a commit ca93893Copy full SHA for ca93893
.github/workflows/publish.yml
@@ -26,8 +26,9 @@ jobs:
26
- name: Extract version from tag
27
id: get_version
28
run: |
29
- # Remove 'v' prefix if present and set as version
30
- VERSION=${GITHUB_REF#refs/tags/v}
+ # Extract version from tag (remove 'refs/tags/' and optional 'v' prefix)
+ TAG_NAME=${GITHUB_REF#refs/tags/}
31
+ VERSION=${TAG_NAME#v}
32
echo "version=$VERSION" >> $GITHUB_OUTPUT
33
34
- name: Update version in pyproject.toml
0 commit comments