Skip to content

Commit b9863f7

Browse files
authored
[PRM-691] Fix floating tag deletion from remote before repushing to a new commit (#220)
1 parent cc1875d commit b9863f7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/automated-main-merge.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
floating_tag="v${LATEST_FLOATING_VERSION#v}" # strip the leading "v" if present
2929
echo "Found tag ${floating_tag} re-creating it to point to latest commit"
3030
git tag -d $floating_tag
31-
echo "${floating_tag} Deleted."
31+
echo "${floating_tag} deleted locally."
32+
git push --delete origin $floating_tag
33+
echo "${floating_tag} deleted from origin."
3234
git tag -a $floating_tag -m "Floating tag for ${floating_tag}"
33-
echo "${floating_tag} Re-created pointing to ${{github.sha}}."
34-
git push origin --tags
35-
echo "${floating_tag} Pushed."
35+
echo "${floating_tag} re-created pointing to ${{ github.sha }}."
36+
git push origin $floating_tag
37+
echo "${floating_tag} pushed to origin."

0 commit comments

Comments
 (0)