Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ynab/slack-post-message-action
GitHub Action that posts a message to a Slack channel
https://github.com/ynab/slack-post-message-action
Last synced: about 1 month ago
JSON representation
GitHub Action that posts a message to a Slack channel
- Host: GitHub
- URL: https://github.com/ynab/slack-post-message-action
- Owner: ynab
- License: mit
- Created: 2023-01-25T20:09:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T20:14:24.000Z (about 2 months ago)
- Last Synced: 2024-11-06T20:35:02.821Z (about 2 months ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack Post GitHub Action
GitHub Action that posts a message to a Slack channel
## Inputs
### `token`
**Optional** The Slack auth token. This is only required if environment variable `SLACK_BOT_TOKEN` is not set.
### `channel`
**Required** The channel name to post to (example: `#general`)
### `thread_ts`
**Optional** The timestamp ID of the parent message to reply to (e.g., the `ts` output from a previous Slack message call)
### `text`
**Required** The message text to post
## Outputs
### `ts`
The timestamp ID of the message (can be used to make subsequent Slack messages a threaded reply)
## Example usage
```yaml
- name: Post Slack message
uses: ynab/[email protected]
with:
token: ${{ secrets.SLACK_API_TOKEN }}
channel: "#general"
text: ":tada: This is a test from the $GITHUB_ACTION workflow! "
```