Skip to content

Commit

Permalink
notify slack on version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamaru committed Oct 4, 2024
1 parent 6e5bb33 commit ad557fa
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/bump-cache-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,22 @@ jobs:
git config user.email [email protected]
git add .
git commit -m "Bump @actions/cache version to ${{ github.event.inputs.cache_version }}"
git push origin main
git push origin main
- name: Update v1 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

- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "Bumped setup-bazel v1 to the HEAD of main that points to ${{ github.event.inputs.cache_version }}"
}
env:
SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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"

0 comments on commit ad557fa

Please sign in to comment.