Skip to content

Commit

Permalink
Explicitly delete / recreate tag instead of updating
Browse files Browse the repository at this point in the history
  • Loading branch information
juulSme committed Jul 8, 2020
1 parent 5242039 commit c80e647
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ EOF
echo "Setting up git machine..."
git_setup

echo "Forcing tag update..."
git tag -a ${1} -m "${2}" "${GITHUB_SHA}" -f
echo "Deleting old tag..."
git tag -d ${1} || true
git push origin :refs/tags/${1}

echo "Forcing tag push..."
git push -f origin refs/tags/${1}
echo "Creating new tag..."
git tag -a ${1} -m "${2}" "${GITHUB_SHA}"
git push origin refs/tags/${1}

0 comments on commit c80e647

Please sign in to comment.