diff --git a/action.sh b/action.sh index ef5cd70..6945503 100755 --- a/action.sh +++ b/action.sh @@ -4,9 +4,9 @@ git config --global user.email "cloud+git+runner@thorup.us" git config --global user.name "Git runner" CURRENT_VERSION=$(jq -r .version package.json) echo $CURRENT_VERSION -git checkout $CURRENT_VERSION +git checkout -b $CURRENT_VERSION CURRENT_VERSION=$INPUT_PREFIX$CURRENT_VERSION -ls + if [[ $INPUT_FORCE_OVERRIDE == true ]]; then git tag -d $CURRENT_VERSION || true