forked from moonrepo/setup-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1022 Bytes
/
bump-tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Bump Tags on Master
on:
push:
branches:
- master
jobs:
bump-tags:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update v2, v3, and v3.0.1 tags
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git tag -fa v2 -m "Update v2 tag to latest commit on master"
git tag -fa v3 -m "Update v3 tag to latest commit on master"
git tag -fa v3.0.1 -m "Update v3.0.1 tag to latest commit on master"
git push origin v2 v3 v3.0.1 --force
- name: Send Slack notification on success
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "Updated setup-rust v2, v3, and v3.0.1 tags to the latest commit on master"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}