Skip to content

Commit 1bb1902

Browse files
authored
Merge pull request Swatinem#6 from useblacksmith/add-bump-tags
.github: add workflow to bump tags to head of master
2 parents c460058 + ce6f732 commit 1bb1902

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/bump-tags.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
15+
- name: Update v3 and v3.0.1 tags
16+
run: |
17+
git config user.name github-actions[bot]
18+
git config user.email github-actions[bot]@users.noreply.github.com
19+
git tag -fa v3 -m "Update v3 tag to latest commit on master"
20+
git tag -fa v3.0.1 -m "Update v3.0.1 tag to latest commit on master"
21+
git push origin v3 v3.0.1 --force
22+
- name: Send Slack notification on success
23+
uses: slackapi/slack-github-action@v1
24+
with:
25+
payload: |
26+
{
27+
"text": "Updated setup-rust v3 and v3.0.1 tags to the latest commit on master"
28+
}
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)