Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datum-cloud/github-actions-slack-notifier
a shareable actions workflow to post build status updates to Slack
https://github.com/datum-cloud/github-actions-slack-notifier
Last synced: about 2 months ago
JSON representation
a shareable actions workflow to post build status updates to Slack
- Host: GitHub
- URL: https://github.com/datum-cloud/github-actions-slack-notifier
- Owner: datum-cloud
- License: apache-2.0
- Created: 2023-09-01T11:40:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-01T11:54:50.000Z (4 months ago)
- Last Synced: 2024-10-31T10:43:39.417Z (about 2 months ago)
- Size: 152 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# github-actions-slack-notifier
a shareable actions workflow to post build status updates to Slack.
You can get started by creating a sample workflow like below:
```yaml
name: Notify slackon: [push]
jobs:
notify-slack:
runs-on: ubuntu-latest
steps:
- name: Send message to Slack channel
uses: datumforge/[email protected]
with:
type: start
# type: custom <- when using type "custom" you can feed in your own templates / message using the "message" parameter
# message: "Matt is the best"
channel_id: C05QJ8EKP0V # you can get this by clicking on the channel in Slack and under the "about" tab the CHannel ID is listed at the bottom
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
mentions: "@manderson" # you need to put the @ and either group of users in slack or a user handle directly
```# Default message types
The default message types:
- default
- start
- end
- failed
- custom# Inputs
| Name | Description |
| ------------- |---------------------------------------------------------|
| `CHANNEL_ID` | The slack channel id |
| `MESSAGE` | The message display in first block of notification |
| `SLACK_BOT_TOKEN` | OAuth token of your slack app |