A GitHub Action to send a workflow result to a Slack channel.
- name: Notify
if: always()
uses: dojineko/slack-notify@v1
with:
github_host: github.private.test # default: github.com
job_status: ${{ job.status }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
Variables | Default | Purpose |
---|---|---|
github_host | github.com | Specifies the hostname for GitHub, for GitHub Enterprise. |
job_status | (required) | Job status |
slack_webhook | (required) | Slack Incomming Webhook (legacy token is not supported) |