Technique 1: Slack Workflow Builder
📝 This technique uses Workflow Builder, which requires a Slack paid plan.
This technique sends data to Slack using a webhook to start a workflow created using Slack Workflow Builder.
Setup
The Slack app manifest included with each example showcases steps of a workflow in Workflow Builder along with the webhook trigger inputs.
For details on how to setup this technique in GitHub Actions, read the setup section of the docs.
Example workflows
- Format generated files: Message outputs from prior steps.
- Post release announcements: Share releases to a channel.
- Update a channel topic: Highlight the current build status.
Format generated files
Convert build outputs from earlier GitHub Action steps into a Slack message.
This example uses data from a payload file to send a message to a hardcoded channel.
Related files:
builds.data.json: Payload file being sent.builds.gha.yml: GitHub Actions workflow.builds.manifest.json: Slack app manifest.builds.trigger.json: Slack webhook trigger.
Post release announcements
Select a channel to post news about the most recent release to.
This example uses Slack functions and inline inputs to do the following:
- Open a form to select a channel.
- Send a message to the selected channel.
- React with a
:tada:emoji.
Related files:
announcements.gha.yml: GitHub Actions workflow.announcements.manifest.json: Slack app manifest.announcements.trigger.json: Slack webhook trigger.
Update a channel topic
Show the latest commit status in the header of a channel.
This example uses the default GitHub event context and payload to update a channel topic.
Related files:
topic.gha.yml: GitHub Actions workflow.topic.manifest.json: Slack app manifest.topic.trigger.json: Slack webhook trigger.