Skip to content

Commit a5e9889

Browse files
chore: fix analyzed version in parsing tag
Signed-off-by: Joris Mancini <[email protected]>
1 parent 6def628 commit a5e9889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Extract tag versions
3030
run: |
3131
regex="v([0-9]+).([0-9]+).([0-9]+)"
32-
if [[ $1 =~ $regex ]]
32+
if [[ ${{ github.ref_name }} =~ $regex ]]
3333
then
3434
echo "GITHUB_MAJOR_VERSION=${BASH_REMATCH[1]}" >> $GITHUB_ENV
3535
echo "GITHUB_MINOR_VERSION=${BASH_REMATCH[2]}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)