Integrate Slack notifications

This commit is contained in:
MaksimZhukov
2021-05-25 21:00:46 +03:00
parent ead7541b7c
commit 4e15cde332
6 changed files with 46 additions and 21 deletions

View File

@ -31,21 +31,4 @@ jobs:
uses: ./
with:
source-tag: ${{ env.TAG_NAME }}
- name: Send slack message
if: failure()
run: |
curl `
-X POST `
-H 'Content-type: application/json' `
--data '{\"text\":\"Failed to update a major tag for the ${{ github.repository }} action\"}' `
${{ secrets.SLACK_WEBHOOK }}
- name: Send slack message
if: success()
run: |
curl `
-X POST `
-H 'Content-type: application/json' `
--data '{\"text\":\"The ${{ steps.update-major-tag.outputs.major-tag }} tag has been successfully updated for the ${{ github.repository }} action to include changes from the ${{ env.TAG_NAME }}\"}' `
${{ secrets.SLACK_WEBHOOK }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}