From 880868329500ec4f1953ce612670e24a597db233 Mon Sep 17 00:00:00 2001 From: Aditya Maru Date: Tue, 17 Dec 2024 20:54:38 -0500 Subject: [PATCH] .github: only bump v2 tag in workflow --- .github/workflows/bump-cache-version.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bump-cache-version.yml b/.github/workflows/bump-cache-version.yml index 7723efa..4cc5b2e 100644 --- a/.github/workflows/bump-cache-version.yml +++ b/.github/workflows/bump-cache-version.yml @@ -37,12 +37,13 @@ jobs: git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}" git push origin main - - name: Update v1 tag + # NOTE: DO NOT bump v1, since we want to keep it backed by the Blacksmith cache for now. + - name: Update v2 tag if: steps.git-check.outputs.changes == 'true' run: | git fetch --all --tags - git tag -fa v1 -m "Update v1 tag to latest commit" - git push origin v1 --force + git tag -fa v2 -m "Update v2 tag to latest commit" + git push origin v2 --force - name: Send Slack notification on success @@ -51,7 +52,7 @@ jobs: with: payload: | { - "text": "Bumped setup-bazel v1 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}" + "text": "Bumped setup-bazel v2 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }} \ No newline at end of file