Update the action's version in examples.

This commit is contained in:
Jon Desrosiers
2021-07-28 14:25:33 -04:00
committed by GitHub
parent 45ed58d25b
commit c757e32a1c
+3 -3
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:
@@ -57,7 +57,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!'