Skip to content

Commit 96c15b6

Browse files
aadityasondhiclaude
andcommitted
Add workflow to bump v1 tag on main pushes
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ed07f3f commit 96c15b6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/bump-v1-tag.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Bump v1 Tag on Main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
bump-v1-tag:
10+
runs-on: blacksmith-2vcpu-ubuntu-2204
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Update v1 tag
18+
run: |
19+
git config user.name github-actions[bot]
20+
git config user.email github-actions[bot]@users.noreply.github.com
21+
git tag -fa v1 -m "Update v1 tag to latest commit on main"
22+
git push origin v1 --force
23+
24+
- name: Send Slack notification on success
25+
uses: slackapi/slack-github-action@v1
26+
with:
27+
payload: |
28+
{
29+
"text": "Updated cache-delete v1 tag to the latest commit on main"
30+
}
31+
env:
32+
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)