From d4aeb9335d162b453af99680d81436de9e18e32e Mon Sep 17 00:00:00 2001 From: ToMe25 <38815969+ToMe25@users.noreply.github.com> Date: Sat, 16 May 2020 19:53:34 +0200 Subject: [PATCH] Hopefully this time fix which commit gets tagged --- src/entrypoint.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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."