Skip to content

Commit 0c755d0

Browse files
committed
Update .github/scripts/check-release.sh
1 parent da7f4c2 commit 0c755d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/check-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
# Checking if current tag matches the package version
4-
current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
4+
current_tag=$(echo $GITHUB_REF | cut -d '/' -f 3 | sed -r 's/^v//')
55
major=$(echo $current_tag | cut -d '.' -f1 )
66
minor=$(echo $current_tag | cut -d '.' -f2 )
77
cropped_current_tag="$major.$minor"

0 commit comments

Comments
 (0)