Merge branch 'main' into add-a-note-to-slack-app-route-doc

This commit is contained in:
Kazuhiro Sera
2021-11-08 07:00:46 +09:00
committed by GitHub
+4 -4
View File
@@ -25,7 +25,7 @@ You need to define expected variables in the payload the webhook will receive. I
```
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
```
@@ -35,7 +35,7 @@ or
```
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
with:
payload: "{\"key\":\"value\",\"foo\":\"bar\"}" # This data can be any valid JSON from a previous step in the GitHub Action
env:
@@ -58,7 +58,7 @@ This route allows
```
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
with:
channel-id: 'CHANNEL_ID' # Slack channel id to post message
slack-message: 'posting from a github action!'
@@ -72,4 +72,4 @@ See [CONTRIBUTING](.github/contributing.md).
## License
See [LICENSNE](LICENSE).
See [LICENSE](LICENSE).