diff --git a/.github/workflows/bump-cache-version.yml b/.github/workflows/bump-cache-version.yml index 4cc5b2e..037132f 100644 --- a/.github/workflows/bump-cache-version.yml +++ b/.github/workflows/bump-cache-version.yml @@ -37,13 +37,13 @@ jobs: git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}" git push origin main - # NOTE: DO NOT bump v1, since we want to keep it backed by the Blacksmith cache for now. - - name: Update v2 tag + # NOTE: Only bump v1, since we want to keep it backed by the Blacksmith cache for now. + - name: Update v1 tag if: steps.git-check.outputs.changes == 'true' run: | git fetch --all --tags - git tag -fa v2 -m "Update v2 tag to latest commit" - git push origin v2 --force + git tag -fa v1 -m "Update v1 tag to latest commit" + git push origin v1 --force - name: Send Slack notification on success @@ -52,7 +52,7 @@ jobs: with: payload: | { - "text": "Bumped setup-bazel v2 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}" + "text": "Bumped setup-bazel v1 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 diff --git a/.github/workflows/bump-tag.yml b/.github/workflows/bump-tag.yml new file mode 100644 index 0000000..56a3a43 --- /dev/null +++ b/.github/workflows/bump-tag.yml @@ -0,0 +1,28 @@ +name: Bump Tag + +on: + workflow_dispatch: + +jobs: + bump-cache-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # NOTE: Only bump v2, since we want to keep v1 backed by the Blacksmith cache for now. + - name: Update v2 tag + run: | + git fetch --all --tags + git tag -fa v2 -m "Update v2 tag to latest commit" + git push origin v2 --force + + + - name: Send Slack notification on success + uses: slackapi/slack-github-action@v1 + with: + payload: | + { + "text": "Bumped setup-bazel v2 to the HEAD of main" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }} \ No newline at end of file