@@ -79,7 +79,7 @@ workflow are sent to the provided webhook URL:
79
79
80
80
``` yaml
81
81
- name : Send GitHub Action data to a Slack workflow
82
- uses : slackapi/slack-github-action@v2-development
82
+ uses : slackapi/slack-github-action@v2.0.0
83
83
with :
84
84
payload-delimiter : " _"
85
85
webhook : ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -100,7 +100,7 @@ the job is started:
100
100
101
101
` ` ` yaml
102
102
- name: Send custom event details to a Slack workflow
103
- uses: slackapi/slack-github-action@v2-development
103
+ uses: slackapi/slack-github-action@v2.0.0
104
104
with:
105
105
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
106
106
webhook-type: webhook-trigger
@@ -116,7 +116,7 @@ in JSON or YAML format:
116
116
117
117
` ` ` yaml
118
118
- name: Send a saved artifact to a Slack workflow
119
- uses: slackapi/slack-github-action@v2-development
119
+ uses: slackapi/slack-github-action@v2.0.0
120
120
with:
121
121
payload-file-path: "./artifacts.json"
122
122
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -165,7 +165,7 @@ bot associated with your app to the channel for posting:
165
165
166
166
` ` ` yaml
167
167
- name: Post to a Slack channel
168
- uses: slackapi/slack-github-action@v2-development
168
+ uses: slackapi/slack-github-action@v2.0.0
169
169
with:
170
170
method: chat.postMessage
171
171
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -181,7 +181,7 @@ blocks, can also be sent with one of the Slack API methods:
181
181
182
182
` ` ` yaml
183
183
- name: Post to a Slack channel
184
- uses: slackapi/slack-github-action@v2-development
184
+ uses: slackapi/slack-github-action@v2.0.0
185
185
with:
186
186
method: chat.postMessage
187
187
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -204,7 +204,7 @@ outputs from past steps as inputs to current ones:
204
204
` ` ` yaml
205
205
- name: Initiate the deployment launch sequence
206
206
id: slack
207
- uses: slackapi/slack-github-action@v2-development
207
+ uses: slackapi/slack-github-action@v2.0.0
208
208
with:
209
209
method: chat.postMessage
210
210
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -220,7 +220,7 @@ outputs from past steps as inputs to current ones:
220
220
- name: Countdown until launch
221
221
run: sleep 10
222
222
- name: Update the original message with success
223
- uses: slackapi/slack-github-action@v2-development
223
+ uses: slackapi/slack-github-action@v2.0.0
224
224
with:
225
225
method: chat.update
226
226
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -244,7 +244,7 @@ be done by including the `thread_ts` attribute of the parent message in the
244
244
245
245
` ` ` yaml
246
246
- name: Initiate a deployment
247
- uses: slackapi/slack-github-action@v2-development
247
+ uses: slackapi/slack-github-action@v2.0.0
248
248
id: deployment_message
249
249
with:
250
250
method: chat.postMessage
@@ -253,7 +253,7 @@ be done by including the `thread_ts` attribute of the parent message in the
253
253
channel: ${{ secrets.SLACK_CHANNEL_ID }}
254
254
text: "Deployment started :eyes:"
255
255
- name: Conclude the deployment
256
- uses: slackapi/slack-github-action@v2-development
256
+ uses: slackapi/slack-github-action@v2.0.0
257
257
with:
258
258
method: chat.postMessage
259
259
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -271,7 +271,7 @@ convenience of the [`files.uploadV2`][files.uploadV2] method:
271
271
272
272
` ` ` yaml
273
273
- name: Share a file to that channel
274
- uses: slackapi/slack-github-action@v2-development
274
+ uses: slackapi/slack-github-action@v2.0.0
275
275
with:
276
276
method: files.uploadV2
277
277
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -315,7 +315,7 @@ using [`mrkdwn`][mrkdwn] formatting values for a message or
315
315
316
316
` ` ` yaml
317
317
- name: Post a message in a channel
318
- uses: slackapi/slack-github-action@v2-development
318
+ uses: slackapi/slack-github-action@v2.0.0
319
319
with:
320
320
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
321
321
webhook-type: incoming-webhook
@@ -343,7 +343,7 @@ to fail. This result can still be gathered from the `ok` output.
343
343
344
344
` ` ` yaml
345
345
- name: Send GitHub Action data to a Slack workflow
346
- uses: slackapi/slack-github-action@v2-development
346
+ uses: slackapi/slack-github-action@v2.0.0
347
347
with:
348
348
errors: true
349
349
method: chat.reverse
@@ -367,7 +367,7 @@ delimiter and will also make values stringified:
367
367
368
368
` ` ` yaml
369
369
- name: Send GitHub Action data to a Slack workflow
370
- uses: slackapi/slack-github-action@v2-development
370
+ uses: slackapi/slack-github-action@v2.0.0
371
371
with:
372
372
payload-delimiter: "_"
373
373
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -386,7 +386,7 @@ input payload with the `payload-templated` option:
386
386
` ` ` yaml
387
387
- name: Send custom JSON data to Slack workflow
388
388
id: slack
389
- uses: slackapi/slack-github-action@v2-development
389
+ uses: slackapi/slack-github-action@v2.0.0
390
390
with:
391
391
payload-file-path: "./payload-slack-content.json"
392
392
payload-templated: true
@@ -405,7 +405,7 @@ configuring a proxy is the same for all techniques:
405
405
406
406
` ` ` yaml
407
407
- name: Post to a Slack channel via a proxy
408
- uses: slackapi/slack-github-action@v2-development
408
+ uses: slackapi/slack-github-action@v2.0.0
409
409
with:
410
410
method: chat.postMessage
411
411
proxy: "http://proxy.example.org:8080" # Change this to a custom value
@@ -433,7 +433,7 @@ these values:
433
433
434
434
` ` ` yaml
435
435
- name: Attempt a burst of requests
436
- uses: slackapi/slack-github-action@v2-development
436
+ uses: slackapi/slack-github-action@v2.0.0
437
437
with:
438
438
method: chat.postMessage
439
439
retries: RAPID
@@ -476,15 +476,15 @@ a Slack channel before posting a message:
476
476
` ` ` yaml
477
477
- name: Create a new Slack channel for recent changes
478
478
id: conversation
479
- uses: slackapi/slack-github-action@v2-development
479
+ uses: slackapi/slack-github-action@v2.0.0
480
480
with:
481
481
method: conversations.create
482
482
token: ${{ secrets.SLACK_BOT_TOKEN }}
483
483
payload: |
484
484
name: pull-request-review-${{ github.sha }}
485
485
- name: Send the pull request link into the Slack channel
486
486
if: ${{ steps.conversation.outputs.ok }}
487
- uses: slackapi/slack-github-action@v2-development
487
+ uses: slackapi/slack-github-action@v2.0.0
488
488
with:
489
489
method: chat.postMessage
490
490
token: ${{ secrets.SLACK_BOT_TOKEN }}
0 commit comments