diff --git a/.github/workflows/automated-main-merge.yml b/.github/workflows/automated-main-merge.yml index eeb4eb1f..e4a773ab 100644 --- a/.github/workflows/automated-main-merge.yml +++ b/.github/workflows/automated-main-merge.yml @@ -28,8 +28,10 @@ jobs: floating_tag="v${LATEST_FLOATING_VERSION#v}" # strip the leading "v" if present echo "Found tag ${floating_tag} re-creating it to point to latest commit" git tag -d $floating_tag - echo "${floating_tag} Deleted." + echo "${floating_tag} deleted locally." + git push --delete origin $floating_tag + echo "${floating_tag} deleted from origin." git tag -a $floating_tag -m "Floating tag for ${floating_tag}" - echo "${floating_tag} Re-created pointing to ${{github.sha}}." - git push origin --tags - echo "${floating_tag} Pushed." + echo "${floating_tag} re-created pointing to ${{ github.sha }}." + git push origin $floating_tag + echo "${floating_tag} pushed to origin."