We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390837f commit 120d206Copy full SHA for 120d206
1 file changed
.github/workflows/publish.yml
@@ -32,14 +32,18 @@ jobs:
32
33
- name: Extract version
34
id: get_version
35
+ env:
36
+ EVENT_NAME: ${{ github.event_name }}
37
+ RELEASE_TAG: ${{ github.event.release.tag_name }}
38
+ REF_NAME: ${{ github.ref_name }}
39
run: |
40
# Get clean version from the tag or release
- if [[ "${{ github.event_name }}" == "release" ]]; then
41
+ if [[ "$EVENT_NAME" == "release" ]]; then
42
# For releases, get the version from the release tag
- TAG_NAME="${{ github.event.release.tag_name }}"
43
+ TAG_NAME="$RELEASE_TAG"
44
else
45
# For tags, get version from the tag
- TAG_NAME="${{ github.ref_name }}"
46
+ TAG_NAME="$REF_NAME"
47
fi
48
49
# Remove 'v' prefix
0 commit comments