Skip to content

Commit 47b1876

Browse files
authored
chore(release): tag version 2.1.0 (#438)
1 parent ab965e5 commit 47b1876

File tree

15 files changed

+34
-34
lines changed

15 files changed

+34
-34
lines changed

docs/additional-configurations.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `errors` option defaults to `false` so failed requests do not cause the step
1010

1111
```yaml
1212
- name: Attempt to call an unknown method
13-
uses: slackapi/slack-github-action@v2.0.0
13+
uses: slackapi/slack-github-action@v2.1.0
1414
with:
1515
errors: true
1616
method: chat.reverse
@@ -29,7 +29,7 @@ The `payload-delimiter` option will flatten the input payload using the provided
2929

3030
```yaml
3131
- name: Flatten the default GitHub payload
32-
uses: slackapi/slack-github-action@v2.0.0
32+
uses: slackapi/slack-github-action@v2.1.0
3333
with:
3434
payload-delimiter: "_"
3535
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -44,7 +44,7 @@ Additional variables provided in the GitHub event [context](https://github.com/a
4444

4545
```yaml
4646
- name: Send custom JSON data to Slack workflow
47-
uses: slackapi/slack-github-action@v2.0.0
47+
uses: slackapi/slack-github-action@v2.1.0
4848
with:
4949
payload-file-path: "./payload-slack-content.json"
5050
payload-templated: true
@@ -60,7 +60,7 @@ If you need to use a proxy to connect to Slack, you can use the `proxy` option.
6060

6161
```yaml
6262
- name: Post to a Slack channel via a proxy
63-
uses: slackapi/slack-github-action@v2.0.0
63+
uses: slackapi/slack-github-action@v2.1.0
6464
with:
6565
method: chat.postMessage
6666
proxy: "http://proxy.example.org:8080" # Change this to a custom value
@@ -85,7 +85,7 @@ The `retries` option can be configured to the needs of your workflow with one of
8585

8686
```yaml
8787
- name: Attempt a burst of requests
88-
uses: slackapi/slack-github-action@v2.0.0
88+
uses: slackapi/slack-github-action@v2.1.0
8989
with:
9090
method: chat.postMessage
9191
retries: RAPID
@@ -103,7 +103,7 @@ In certain circumstances, such as testing the sent payload, a [custom API URL](h
103103

104104
```yaml
105105
- name: Send to a custom API URL
106-
uses: slackapi/slack-github-action@v2.0.0
106+
uses: slackapi/slack-github-action@v2.1.0
107107
with:
108108
api: http://localhost:8080
109109
method: chat.postMessage

docs/sending-techniques/sending-data-slack-api-method/sending-data-slack-api-method.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Posting a message with the [`chat.postMessage`](https://docs.slack.dev/reference
2929

3030
```yaml
3131
- name: Post text to a Slack channel
32-
uses: slackapi/slack-github-action@v2.0.0
32+
uses: slackapi/slack-github-action@v2.1.0
3333
with:
3434
method: chat.postMessage
3535
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -44,7 +44,7 @@ More complex message layouts, such as messages made with [Block Kit](https://doc
4444
4545
```yaml
4646
- name: Post blocks to a Slack channel
47-
uses: slackapi/slack-github-action@v2.0.0
47+
uses: slackapi/slack-github-action@v2.1.0
4848
with:
4949
method: chat.postMessage
5050
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -65,7 +65,7 @@ Updating a message after it's posted can be done with the [`chat.update`](https:
6565
```yaml
6666
- name: Initiate the deployment launch sequence
6767
id: launch_sequence
68-
uses: slackapi/slack-github-action@v2.0.0
68+
uses: slackapi/slack-github-action@v2.1.0
6969
with:
7070
method: chat.postMessage
7171
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -81,7 +81,7 @@ Updating a message after it's posted can be done with the [`chat.update`](https:
8181
- name: Countdown until launch
8282
run: sleep 10
8383
- name: Update the original message with success
84-
uses: slackapi/slack-github-action@v2.0.0
84+
uses: slackapi/slack-github-action@v2.1.0
8585
with:
8686
method: chat.update
8787
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -103,7 +103,7 @@ Posting [threaded replies to a message](https://docs.slack.dev/messaging/#thread
103103

104104
```yaml
105105
- name: Initiate a deployment
106-
uses: slackapi/slack-github-action@v2.0.0
106+
uses: slackapi/slack-github-action@v2.1.0
107107
id: deployment_message
108108
with:
109109
method: chat.postMessage
@@ -112,7 +112,7 @@ Posting [threaded replies to a message](https://docs.slack.dev/messaging/#thread
112112
channel: ${{ secrets.SLACK_CHANNEL_ID }}
113113
text: "Deployment started :eyes:"
114114
- name: Conclude the deployment
115-
uses: slackapi/slack-github-action@v2.0.0
115+
uses: slackapi/slack-github-action@v2.1.0
116116
with:
117117
method: chat.postMessage
118118
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -128,7 +128,7 @@ Calling [a Slack API method](https://docs.slack.dev/reference/methods) with [`@s
128128

129129
```yaml
130130
- name: Share a file to that channel
131-
uses: slackapi/slack-github-action@v2.0.0
131+
uses: slackapi/slack-github-action@v2.1.0
132132
with:
133133
method: files.uploadV2
134134
token: ${{ secrets.SLACK_BOT_TOKEN }}

docs/sending-techniques/sending-data-slack-incoming-webhook/sending-data-slack-incoming-webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add the collected webhook from above to a GitHub workflow and configure the step
3131

3232
```yaml
3333
- name: Post a message in a channel
34-
uses: slackapi/slack-github-action@v2.0.0
34+
uses: slackapi/slack-github-action@v2.1.0
3535
with:
3636
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
3737
webhook-type: incoming-webhook

docs/sending-techniques/sending-data-webhook-slack-workflow/sending-data-webhook-slack-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ In the example below, the default GitHub event [context](https://github.com/acti
3434

3535
```yaml
3636
- name: Send GitHub Action data to a Slack workflow
37-
uses: slackapi/slack-github-action@v2.0.0
37+
uses: slackapi/slack-github-action@v2.1.0
3838
with:
3939
payload-delimiter: "_"
4040
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
@@ -49,7 +49,7 @@ Provided input values for payload information are sent to the webhook URL after
4949

5050
```yaml
5151
- name: Send custom event details to a Slack workflow
52-
uses: slackapi/slack-github-action@v2.0.0
52+
uses: slackapi/slack-github-action@v2.1.0
5353
with:
5454
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
5555
webhook-type: webhook-trigger
@@ -64,7 +64,7 @@ Input values for the payload to be sent can also be provided in a file, either i
6464

6565
```yaml
6666
- name: Send a saved artifact to a Slack workflow
67-
uses: slackapi/slack-github-action@v2.0.0
67+
uses: slackapi/slack-github-action@v2.1.0
6868
with:
6969
payload-file-path: "./artifacts.json"
7070
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

docs/sending-techniques/sending-techniques.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ The following snippet shows how multiple steps can be chained together to create
3737
```yaml
3838
- name: Create a new Slack channel for recent changes
3939
id: conversation
40-
uses: slackapi/slack-github-action@v2.0.0
40+
uses: slackapi/slack-github-action@v2.1.0
4141
with:
4242
method: conversations.create
4343
token: ${{ secrets.SLACK_BOT_TOKEN }}
4444
payload: |
4545
name: pull-request-review-${{ github.sha }}
4646
- name: Send the pull request link into the Slack channel
4747
if: ${{ steps.conversation.outputs.ok }}
48-
uses: slackapi/slack-github-action@v2.0.0
48+
uses: slackapi/slack-github-action@v2.1.0
4949
with:
5050
method: chat.postMessage
5151
token: ${{ secrets.SLACK_BOT_TOKEN }}

example-workflows/Technique_1_Slack_Workflow_Builder/announcements.gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Draft with these release notes details
14-
uses: slackapi/slack-github-action@v2.0.0
14+
uses: slackapi/slack-github-action@v2.1.0
1515
with:
1616
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
1717
webhook-type: webhook-trigger

example-workflows/Technique_1_Slack_Workflow_Builder/builds.gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
persist-credentials: false
1717

1818
- name: Start the Slack workflow
19-
uses: slackapi/slack-github-action@v2.0.0
19+
uses: slackapi/slack-github-action@v2.1.0
2020
with:
2121
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/builds.data.json"
2222
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

example-workflows/Technique_1_Slack_Workflow_Builder/topic.gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Update the channel topic
14-
uses: slackapi/slack-github-action@v2.0.0
14+
uses: slackapi/slack-github-action@v2.1.0
1515
with:
1616
payload-delimiter: "_"
1717
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}

example-workflows/Technique_2_Slack_API_Method/author.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Find correspondences
1717
id: email
18-
uses: slackapi/slack-github-action@v2.0.0
18+
uses: slackapi/slack-github-action@v2.1.0
1919
with:
2020
method: users.lookupByEmail # https://api.slack.com/methods/users.lookupByEmail
2121
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Send a direct message
3232
if: ${{ steps.email.outputs.ok }}
33-
uses: slackapi/slack-github-action@v2.0.0
33+
uses: slackapi/slack-github-action@v2.1.0
3434
with:
3535
errors: true
3636
method: chat.postMessage # https://api.slack.com/methods/chat.postMessage

example-workflows/Technique_2_Slack_API_Method/invite.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Create a new Slack channel for communications
1515
id: conversation
16-
uses: slackapi/slack-github-action@v2.0.0
16+
uses: slackapi/slack-github-action@v2.1.0
1717
with:
1818
errors: true
1919
method: conversations.create # https://api.slack.com/methods/conversations.create
@@ -22,7 +22,7 @@ jobs:
2222
name: issue-${{ github.event.issue.number }}
2323
2424
- name: Send the issue link into the Slack channel
25-
uses: slackapi/slack-github-action@v2.0.0
25+
uses: slackapi/slack-github-action@v2.1.0
2626
with:
2727
method: chat.postMessage # https://api.slack.com/methods/chat.postMessage
2828
token: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Gather information of those to add
3434
id: members
35-
uses: slackapi/slack-github-action@v2.0.0
35+
uses: slackapi/slack-github-action@v2.1.0
3636
with:
3737
errors: true
3838
method: usergroups.users.list # https://api.slack.com/methods/usergroups.users.list
@@ -46,7 +46,7 @@ jobs:
4646
echo "SLACK_USERGROUP_USER_IDS=$SLACK_USERGROUP_USER_IDS" >> $GITHUB_ENV
4747
4848
- name: Add the usergroup to the channel
49-
uses: slackapi/slack-github-action@v2.0.0
49+
uses: slackapi/slack-github-action@v2.1.0
5050
with:
5151
errors: true
5252
method: conversations.invite # https://api.slack.com/methods/conversations.invite

example-workflows/Technique_3_Slack_Incoming_Webhook/blocks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Write the review
14-
uses: slackapi/slack-github-action@v2.0.0
14+
uses: slackapi/slack-github-action@v2.1.0
1515
with:
1616
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
1717
webhook-type: incoming-webhook

example-workflows/Technique_3_Slack_Incoming_Webhook/saved.gha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
persist-credentials: false
1717

1818
- name: Forward a saved message
19-
uses: slackapi/slack-github-action@v2.0.0
19+
uses: slackapi/slack-github-action@v2.1.0
2020
with:
2121
payload-file-path: "./example-workflows/Technique_3_Slack_Incoming_Webhook/saved.data.json"
2222
payload-templated: true

example-workflows/Technique_3_Slack_Incoming_Webhook/text.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Greet the reader
14-
uses: slackapi/slack-github-action@v2.0.0
14+
uses: slackapi/slack-github-action@v2.1.0
1515
with:
1616
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
1717
webhook-type: incoming-webhook

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "slack-github-action",
3-
"version": "2.0.0",
3+
"version": "2.1.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)