diff --git a/src/entrypoint.sh b/src/entrypoint.sh index f327aea..5295b14 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -32,10 +32,7 @@ remove() { } tag() { - if [ -n "$INPUT_TAG" ]; then - git tag $INPUT_TAG - git push origin refs/tags/$INPUT_TAG - fi + if [ -n "$INPUT_TAG" ]; then git tag $INPUT_TAG; fi } # This is needed to make the check work for untracked files @@ -79,7 +76,7 @@ if ! git diff --cached --quiet --exit-code; then tag echo "Pushing to repo..." - git push --set-upstream origin "$INPUT_REF" + git push --set-upstream origin "$INPUT_REF" --tags echo "::endgroup::" echo "Task completed."