We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b45cfe commit f54231cCopy full SHA for f54231c
.github/workflows/release_ci.yml
@@ -23,11 +23,9 @@ jobs:
23
- name: Get the version
24
id: get_version
25
run: |
26
- arrTag=(${GITHUB_REF//\// })
27
- VERSION="${arrTag[2]}"
28
- VERSION="${VERSION//v}"
29
- echo VERSION:${VERSION}
30
- echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
+ # Strip leading 'v' if present
+ VERSION="${GITHUB_REF_NAME#v}"
+ echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
31
shell: bash
32
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
33
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
0 commit comments