Skip to content

Slack notification for Github Actions #53

Slack notification for Github Actions

Slack notification for Github Actions #53

Workflow file for this run

name: Slack notification for Github Actions
on:
workflow_run:
workflows:
- Push to main
- release
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 }}