https://github.com/quipper/slack-notification-action
Notify workflow run of GitHub Actions to Slack
https://github.com/quipper/slack-notification-action
github-actions slack
Last synced: about 2 months ago
JSON representation
Notify workflow run of GitHub Actions to Slack
- Host: GitHub
- URL: https://github.com/quipper/slack-notification-action
- Owner: quipper
- License: apache-2.0
- Created: 2022-09-30T01:03:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-12T18:43:12.000Z (about 2 months ago)
- Last Synced: 2026-04-12T20:27:56.359Z (about 2 months ago)
- Topics: github-actions, slack
- Language: TypeScript
- Homepage:
- Size: 14.6 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-notification-action [](https://github.com/quipper/slack-notification-action/actions/workflows/ts.yaml)
This is an action to notify a status of GitHub Actions to a Slack channel.
## Example

## Getting Started
To nofity a failure of workflow run on `main` branch,
```yaml
name: slack-notification
on:
workflow_run:
workflows:
- "**"
# you can exclude some workflows, like:
# - '!*-metrics'
branches:
- main
types:
- completed
jobs:
send:
if: github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: quipper/slack-notification-action@v2
with:
slack-channel-id: ABCDEF123 # your Slack channel ID
slack-app-token: ${{ secrets.SLACK_APP_TOKEN }}
```
You need to set up your Slack App.
See https://github.com/slackapi/slack-github-action for details.
## Specification
This action ignores an event if the conclusion is cancelled or skipped.
When this action is run on `workflow_run` event, it inspects the target workflow run.
Otherwise, it inspects the current workflow run.
### Inputs
| Name | Default | Description |
| ------------------ | -------------- | ----------------------------------------------------------------------- |
| `slack-channel-id` | (required) | ID of the Slack channel |
| `slack-thread-ts` | - | Thread timestamp to post message in |
| `slack-app-token` | - | Bot token of Slack App. If not set, dry run is performed |
| `github-token` | `github.token` | GitHub token |
| `mention-message` | `github.actor` | Message to mention the current user. Set to empty to disable mentioning |
### Outputs
None.