Bump Tag #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Tag | |
on: | |
workflow_dispatch: | |
jobs: | |
bump-cache-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Commit and push changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
# 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 }} |