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.
2 parents 67c1795 + b7fbeda commit 6e059bfCopy full SHA for 6e059bf
.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 | tr -d ' ',v)
5
file_tag=$(grep '"version":' package.json | cut -d ':' -f 2- | tr -d ' ' | tr -d '"' | tr -d ',')
6
if [ "$current_tag" != "$file_tag" ]; then
7
echo "Error: the current tag does not match the version in package file(s)."
0 commit comments