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
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

View File

@@ -111,6 +111,10 @@ jobs:
echo "versionCode=$VERSION_CODE" >> $GITHUB_OUTPUT
shell: bash
release-google:
runs-on: ubuntu-latest
needs: [prepare-build-info, run-lint]
environment: Release
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GRADLE_CACHE_URL: ${{ secrets.GRADLE_CACHE_URL }}