Merge pull request #12 from useblacksmith/bump-ruby #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Tags on Main | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
bump-tags: | |
runs-on: blacksmith | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Update v2, v2.0.1, and v2.0.2 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 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 master" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }} |