https://github.com/bonitasoft/notify-slack-action
GitHub Action to send a message to a Slack channel
https://github.com/bonitasoft/notify-slack-action
composite-action github-action published-never
Last synced: 3 months ago
JSON representation
GitHub Action to send a message to a Slack channel
- Host: GitHub
- URL: https://github.com/bonitasoft/notify-slack-action
- Owner: bonitasoft
- License: gpl-2.0
- Created: 2024-02-16T14:18:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T16:54:11.000Z (11 months ago)
- Last Synced: 2025-03-13T23:48:46.459Z (7 months ago)
- Topics: composite-action, github-action, published-never
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notify Slack Action
Composite GitHub Action to send a message to a Slack channel.
**Intend for internal usage only.**
## Inputs
| Name | Required | Description |
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
| `keeper-secret-config` | `true` | The Keeper Secret Manager configuration used to retrieve Slack OAuth token from KSM |
| `channel-id` | `true` | The Slack channel id where to send the message |
| `message` | `true` | The message to display in first block of notification |
| `previous-message-ts` | `false` | The timestamp of a previous message posted. It will update the existing message instead of posting a new message. |## Outputs
| Name | Description |
| ------------------- | ----------------------------------- |
| `message-timestamp` | The timestamp of the message posted |## Usage
```yaml
jobs:
notify-slack:
runs-on: ubuntu-latest
steps:
- name: Send message to Slack channel
uses: bonitasoft/notify-slack-action@TAGNAME
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
channel-id: ${{ vars.SLACK_CHANNEL_ID }}
message: |
:x: Build on branch ${{ github.ref }} failed.
```