This commit is contained in:
13
action.sh
Executable file
13
action.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
apt update
|
||||
apt install jq -y
|
||||
CURRENT_VERSION=$(jq -r .version package.json)
|
||||
echo $CURRENT_VERSION
|
||||
PREVIOUS_VERSIONS=$(git tag -l)
|
||||
echo $PREVIOUS_VERSIONS
|
||||
# yo
|
||||
|
||||
if [[ $PREVIOUS_VERSIONS == *$CURRENT_VERSION* ]];
|
||||
then
|
||||
echo "Version $CURRENT_VERSION already tagged in this repository. Be sure to update version number, or delete existing tag."
|
||||
return 1
|
||||
fi
|
||||
Reference in New Issue
Block a user