We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed07f3f + 96c15b6 commit 3a625b7Copy full SHA for 3a625b7
1 file changed
.github/workflows/bump-v1-tag.yaml
@@ -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
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