fix(ci): pre-emptive tagging (#4415)

This commit is contained in:
James Rich 2026-02-02 13:43:42 -06:00 committed by GitHub
parent cf0af91ae1
commit d4089a2985
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -240,10 +240,14 @@ jobs:
else
echo "No changes to commit."
fi
# Pre-emptive Tagging: Tag the commit (new or existing) and push immediately
# This ensures downstream workflows can simply checkout the tag.
echo "Tagging and pushing $FINAL_TAG..."
shell: bash
- name: Create and Push Release Tag
if: ${{ !inputs.dry_run && inputs.channel == 'internal' }}
env:
FINAL_TAG: ${{ steps.calculate_tags.outputs.final_tag }}
run: |
echo "Tagging and pushing release: $FINAL_TAG"
git tag "$FINAL_TAG"
git push origin "$FINAL_TAG"
shell: bash