Skip to content

Commit

Permalink
Merge pull request #5 from useblacksmith/update-bump-script
Browse files Browse the repository at this point in the history
.github: only bump v2 tag in workflow
  • Loading branch information
adityamaru authored Dec 18, 2024
2 parents 6c876f9 + 8808683 commit 01e5c8c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/bump-cache-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ jobs:
git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}"
git push origin main
- name: Update v1 tag
# NOTE: DO NOT bump v1, since we want to keep it backed by the Blacksmith cache for now.
- name: Update v2 tag
if: steps.git-check.outputs.changes == 'true'
run: |
git fetch --all --tags
git tag -fa v1 -m "Update v1 tag to latest commit"
git push origin v1 --force
git tag -fa v2 -m "Update v2 tag to latest commit"
git push origin v2 --force

- name: Send Slack notification on success
Expand All @@ -51,7 +52,7 @@ jobs:
with:
payload: |
{
"text": "Bumped setup-bazel v1 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}"
"text": "Bumped setup-bazel v2 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CACHE_SLACK_WEBHOOK_URL }}

0 comments on commit 01e5c8c

Please sign in to comment.