correct order

This commit is contained in:
Bryce Thorup
2023-12-15 06:21:01 -07:00
parent 6d4195f93a
commit 5086e958b8
2 changed files with 8 additions and 8 deletions

12
action
View File

@@ -1,9 +1,9 @@
apt update
apt install jq -y
CURRENT_VERSION=$(jq -r .version package.json)
PREVIOUS_VERSIONS=$(git tag -l)
# CURRENT_VERSION=$(jq -r .version package.json)
# PREVIOUS_VERSIONS=$(git tag -l)
if [[ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]; then
git tag -a -m "Version $(CURRENT_VERSION)" $CURRENT_VERSION
git push --follow-tags
fi
# if [[ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]; then
# git tag -a -m "Version $(CURRENT_VERSION)" $CURRENT_VERSION
# git push --follow-tags
# fi

View File

@@ -8,5 +8,5 @@ inputs:
runs:
using: composite
steps:
- run: Ensure apt is up-to-date
shell: ./action
- run: action
shell: bash