Skip to content

Commit e598089

Browse files
zimegFil Majseratch
committed
chore(release): tag version 2.0.0
Co-authored-by: Fil Maj <[email protected]> Co-authored-by: Kazuhiro Sera <[email protected]>
1 parent e9b3a6b commit e598089

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
lines changed

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ workflow are sent to the provided webhook URL:
7979

8080
```yaml
8181
- 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
8383
with:
8484
payload-delimiter: "_"
8585
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -100,7 +100,7 @@ the job is started:
100100

101101
```yaml
102102
- 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
104104
with:
105105
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
106106
webhook-type: webhook-trigger
@@ -116,7 +116,7 @@ in JSON or YAML format:
116116

117117
```yaml
118118
- 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
120120
with:
121121
payload-file-path: "./artifacts.json"
122122
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -165,7 +165,7 @@ bot associated with your app to the channel for posting:
165165

166166
```yaml
167167
- name: Post to a Slack channel
168-
uses: slackapi/slack-github-action@v2-development
168+
uses: slackapi/slack-github-action@v2.0.0
169169
with:
170170
method: chat.postMessage
171171
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -181,7 +181,7 @@ blocks, can also be sent with one of the Slack API methods:
181181

182182
```yaml
183183
- name: Post to a Slack channel
184-
uses: slackapi/slack-github-action@v2-development
184+
uses: slackapi/slack-github-action@v2.0.0
185185
with:
186186
method: chat.postMessage
187187
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -204,7 +204,7 @@ outputs from past steps as inputs to current ones:
204204
```yaml
205205
- name: Initiate the deployment launch sequence
206206
id: slack
207-
uses: slackapi/slack-github-action@v2-development
207+
uses: slackapi/slack-github-action@v2.0.0
208208
with:
209209
method: chat.postMessage
210210
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -220,7 +220,7 @@ outputs from past steps as inputs to current ones:
220220
- name: Countdown until launch
221221
run: sleep 10
222222
- name: Update the original message with success
223-
uses: slackapi/slack-github-action@v2-development
223+
uses: slackapi/slack-github-action@v2.0.0
224224
with:
225225
method: chat.update
226226
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -244,7 +244,7 @@ be done by including the `thread_ts` attribute of the parent message in the
244244

245245
```yaml
246246
- name: Initiate a deployment
247-
uses: slackapi/slack-github-action@v2-development
247+
uses: slackapi/slack-github-action@v2.0.0
248248
id: deployment_message
249249
with:
250250
method: chat.postMessage
@@ -253,7 +253,7 @@ be done by including the `thread_ts` attribute of the parent message in the
253253
channel: ${{ secrets.SLACK_CHANNEL_ID }}
254254
text: "Deployment started :eyes:"
255255
- name: Conclude the deployment
256-
uses: slackapi/slack-github-action@v2-development
256+
uses: slackapi/slack-github-action@v2.0.0
257257
with:
258258
method: chat.postMessage
259259
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -271,7 +271,7 @@ convenience of the [`files.uploadV2`][files.uploadV2] method:
271271

272272
```yaml
273273
- name: Share a file to that channel
274-
uses: slackapi/slack-github-action@v2-development
274+
uses: slackapi/slack-github-action@v2.0.0
275275
with:
276276
method: files.uploadV2
277277
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -315,7 +315,7 @@ using [`mrkdwn`][mrkdwn] formatting values for a message or
315315

316316
```yaml
317317
- name: Post a message in a channel
318-
uses: slackapi/slack-github-action@v2-development
318+
uses: slackapi/slack-github-action@v2.0.0
319319
with:
320320
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
321321
webhook-type: incoming-webhook
@@ -343,7 +343,7 @@ to fail. This result can still be gathered from the `ok` output.
343343

344344
```yaml
345345
- 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
347347
with:
348348
errors: true
349349
method: chat.reverse
@@ -367,7 +367,7 @@ delimiter and will also make values stringified:
367367

368368
```yaml
369369
- 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
371371
with:
372372
payload-delimiter: "_"
373373
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -386,7 +386,7 @@ input payload with the `payload-templated` option:
386386
```yaml
387387
- name: Send custom JSON data to Slack workflow
388388
id: slack
389-
uses: slackapi/slack-github-action@v2-development
389+
uses: slackapi/slack-github-action@v2.0.0
390390
with:
391391
payload-file-path: "./payload-slack-content.json"
392392
payload-templated: true
@@ -405,7 +405,7 @@ configuring a proxy is the same for all techniques:
405405

406406
```yaml
407407
- 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
409409
with:
410410
method: chat.postMessage
411411
proxy: "http://proxy.example.org:8080" # Change this to a custom value
@@ -433,7 +433,7 @@ these values:
433433

434434
```yaml
435435
- name: Attempt a burst of requests
436-
uses: slackapi/slack-github-action@v2-development
436+
uses: slackapi/slack-github-action@v2.0.0
437437
with:
438438
method: chat.postMessage
439439
retries: RAPID
@@ -476,15 +476,15 @@ a Slack channel before posting a message:
476476
```yaml
477477
- name: Create a new Slack channel for recent changes
478478
id: conversation
479-
uses: slackapi/slack-github-action@v2-development
479+
uses: slackapi/slack-github-action@v2.0.0
480480
with:
481481
method: conversations.create
482482
token: ${{ secrets.SLACK_BOT_TOKEN }}
483483
payload: |
484484
name: pull-request-review-${{ github.sha }}
485485
- name: Send the pull request link into the Slack channel
486486
if: ${{ steps.conversation.outputs.ok }}
487-
uses: slackapi/slack-github-action@v2-development
487+
uses: slackapi/slack-github-action@v2.0.0
488488
with:
489489
method: chat.postMessage
490490
token: ${{ secrets.SLACK_BOT_TOKEN }}

example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
1313
webhook-type: webhook-trigger

example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload_from_file.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json"
1313
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
payload-delimiter: "_"
1313
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

example-workflows/Technique_2_Slack_App/JSON_payload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
token: ${{ secrets.SLACK_BOT_TOKEN }}
1313
method: chat.postMessage

example-workflows/Technique_2_Slack_App/JSON_payload_as_text.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
method: chat.postMessage
1313
token: ${{ secrets.SLACK_BOT_TOKEN }}

example-workflows/Technique_2_Slack_App/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Publish to slack channel via bot token
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
method: chat.postMessage
1313
token: ${{ secrets.SLACK_BOT_TOKEN }}

example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v2-development
10+
uses: slackapi/slack-github-action@v2.0.0
1111
with:
1212
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
1313
webhook-type: webhook-trigger

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slack-github-action",
3-
"version": "2.0.0-development",
3+
"version": "2.0.0",
44
"description": "The official Slack Github Action. Use this to send data into your Slack workspace",
55
"main": "dist/index.js",
66
"type": "module",

0 commit comments

Comments
 (0)