Skip to content

Merge pull request #4 from useblacksmith/bump-cache-version-3.2.158-2… #2

Merge pull request #4 from useblacksmith/bump-cache-version-3.2.158-2…

Merge pull request #4 from useblacksmith/bump-cache-version-3.2.158-2… #2

Workflow file for this run

name: Bump Tags on Main
on:
push:
branches:
- main
jobs:
bump-tags:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update v5 and v5.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 v5 -m "Update v5 tag to latest commit on main"
git tag -fa v5.0.1 -m "Update v5.0.1 tag to latest commit on main"
git push origin v5 v5.0.1 --force
- name: Send Slack notification on success
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "Updated setup-java v5 and v5.0.1 tags to the latest commit on main"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}