File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments