Skip to content

Commit

Permalink
Update bump-tag.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamaru authored Oct 4, 2024
1 parent 2ba5072 commit 3359cb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bump-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Bump Tags on Main
on:
push:
branches:
- main
- master
workflow_dispatch:

jobs:
Expand All @@ -19,17 +19,17 @@ jobs:
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 main"
git tag -fa v2.0.1 -m "Update v2.0.1 tag to latest commit on main"
git tag -fa v2.0.2 -m "Update v2.0.2 tag to latest commit on main"
git tag -fa v2 -m "Update v2 tag to latest commit on master"
git tag -fa v2.0.1 -m "Update v2.0.1 tag to latest commit on master"
git tag -fa v2.0.2 -m "Update v2.0.2 tag to latest commit on master"
git push origin v2 v2.0.1 v2.0.2 --force
- name: Send Slack notification on success
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "Updated setup-ruby v2, v2.0.1, and v2.0.2 tags to the latest commit on main"
"text": "Updated setup-ruby v2, v2.0.1, and v2.0.2 tags to the latest commit on master"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}

0 comments on commit 3359cb9

Please sign in to comment.