diff --git a/action.sh b/action.sh index fd547f3..d98ca44 100755 --- a/action.sh +++ b/action.sh @@ -4,11 +4,12 @@ git config --global user.email "cloud+git+runner@thorup.us" git config --global user.name "Git runner" CURRENT_VERSION=$INPUT_PREFIX$(jq -r .version package.json) echo $CURRENT_VERSION +git checkout $CURRENT_VERSION if [[ $INPUT_FORCE_OVERRIDE == true ]]; then git tag -d $CURRENT_VERSION || true - git push --delete origin $CURRENT_VERION || true + git push --delete origin $CURRENT_VERSION || true fi PREVIOUS_VERSIONS=$(git tag -l)