mirror of
https://github.com/actions/publish-action.git
synced 2025-06-24 20:01:08 +02:00
Integrate Slack notifications
This commit is contained in:
19
.github/workflows/release-new-action-version.yml
vendored
19
.github/workflows/release-new-action-version.yml
vendored
@ -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 }}
|
Reference in New Issue
Block a user