Slack Notification #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slack Notification | |
on: | |
workflow_run: | |
workflows: | |
- version, tag and github release | |
- publish | |
types: | |
- completed | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Announce result | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "GitHub Actions Notification", | |
"event": "${{ github.event.workflow_run.name }}, run: ${{ github.event.workflow_run.html_url }}", | |
"repo": "${{ github.event.workflow_run.repository.name }}", | |
"result": "${{ github.event.workflow_run.conclusion }}" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.IDEE_MAIN_SLACK_WEBHOOK }} |