equisoft-actions/Send a notification to Slack with the status of a workflow
Push the result of a workflow to a Slack channel. ```yaml jobs: notify: runs-on: ubuntu-latest needs: [job-a, job-b] steps: - name: Post status to Slack uses: equisoft-actions/notify-workflow-status@v2 with: needs: $ {{ toJSON(needs) }} slack-bot-token: $ {{ secrets.SLACK_BOT_TOKEN }} slack-channel: awt-ci-alerts ```
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| needs | The GitHub Actions `needs` context which should be passed in using toJSON(): `$ {{ toJSON(needs) }}`. The notify jobs must depend on the jobs that you want to monitor. | no | — |
| downgrade-to-warning | Comma-separated list of jobs that should be downgraded to a warning status instead of a failure. | no | — |
| notify-statuses | Comma-separated list of statuses for which notifications will be published. Allowed values are cancelled, failure, success or warning. Defaults to 'failure,warning'. | no | failure,warning |
| slack-enabled | If set to `true`, the status of the workflow will be posted to Slack. Defaults to `true`. | no | true |
| slack-bot-token | The bot token used to authenticate with Slack. | no | — |
| slack-channel | The Slack channel where the notification will be sent. Defaults to 'ops-ci'. | no | ops-ci |
| workflow-status | The workflow status. Must be one of cancelled, failure, success or warning. If specified, it has precedence over `needs`. | no | — |
Outputs
| name | description |
|---|---|
| status | The status of the workflow. Can be one of cancelled, failure, success or warning. |