Skip to content

Commit 42de90f

Browse files
committed
.github: move to correct dir
1 parent a7c5059 commit 42de90f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/bump-tags.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Bump Tags on Master
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
bump-tags:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
ref: master
15+
16+
- name: Update all version tags
17+
run: |
18+
git config user.name github-actions[bot]
19+
git config user.email github-actions[bot]@users.noreply.github.com
20+
21+
# Update all version tags
22+
git tag -fa v4 -m "Update v4 tag to latest commit on master"
23+
git tag -fa v5 -m "Update v5 tag to latest commit on master"
24+
git tag -fa v5.1.0 -m "Update v5.1.0 tag to latest commit on master"
25+
git tag -fa v6 -m "Update v6 tag to latest commit on master"
26+
git tag -fa v6.0.1 -m "Update v6.0.1 tag to latest commit on master"
27+
git tag -fa v6.1.0 -m "Update v6.1.0 tag to latest commit on master"
28+
29+
# Push all tags at once
30+
git push origin v4 v5 v5.1.0 v6 v6.0.1 v6.1.0 --force
31+
32+
- name: Send Slack notification on success
33+
uses: slackapi/slack-github-action@v1
34+
with:
35+
payload: |
36+
{
37+
"text": "Updated all version tags (v4, v5, v5.1.0, v6, v6.0.1, v6.1.0) to the latest commit on master"
38+
}
39+
env:
40+
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)