forked from bazel-contrib/setup-bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from useblacksmith/fix-github
.github: fix bumping workflows
- Loading branch information
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |