From 7b366b7c35cc99867c0752aa5c8ea0e8dac1d51c Mon Sep 17 00:00:00 2001 From: Federico Rubinstein Date: Wed, 27 Apr 2022 16:17:50 +0100 Subject: [PATCH] Fix (would clobber existing tag) issue I encountered the following error message when using this action: ! [rejected] v1.0.0 -> v1.0.0 (would clobber existing tag) The way of solving this issue is by forcing git to refresh the local tag. As discussed here: https://stackoverflow.com/questions/58031165/how-to-get-rid-of-would-clobber-existing-tag --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index d139660..a5116a2 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ set -e git config --global --add safe.directory /github/workspace -git fetch --tags +git fetch --tags -f # This suppress an error occurred when the repository is a complete one. git fetch --prune --unshallow || true