We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7f4c2 commit 0c755d0Copy full SHA for 0c755d0
.github/scripts/check-release.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
3
# Checking if current tag matches the package version
4
-current_tag=$(echo $GITHUB_REF | tr -d 'refs/tags/v')
+current_tag=$(echo $GITHUB_REF | cut -d '/' -f 3 | sed -r 's/^v//')
5
major=$(echo $current_tag | cut -d '.' -f1 )
6
minor=$(echo $current_tag | cut -d '.' -f2 )
7
cropped_current_tag="$major.$minor"
0 commit comments