Skip to content

Commit 2a8087d

Browse files
author
Filip Maj
committed
v1.25.0
1 parent a678e58 commit 2a8087d

File tree

10 files changed

+913
-5724
lines changed

10 files changed

+913
-5724
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
4141
```yaml
4242
- name: Send GitHub Action trigger data to Slack workflow
4343
id: slack
44-
uses: slackapi/slack-github-action@v1.24.0
44+
uses: slackapi/slack-github-action@v1.25.0
4545
env:
4646
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4747
```
@@ -51,7 +51,7 @@ or
5151
```yaml
5252
- name: Send custom JSON data to Slack workflow
5353
id: slack
54-
uses: slackapi/slack-github-action@v1.24.0
54+
uses: slackapi/slack-github-action@v1.25.0
5555
with:
5656
# This data can be any valid JSON from a previous step in the GitHub Action
5757
payload: |
@@ -69,7 +69,7 @@ or
6969
```yaml
7070
- name: Send custom JSON data to Slack workflow
7171
id: slack
72-
uses: slackapi/slack-github-action@v1.24.0
72+
uses: slackapi/slack-github-action@v1.25.0
7373
with:
7474
payload-file-path: "./payload-slack-content.json"
7575
env:
@@ -95,7 +95,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
9595
```yaml
9696
- name: Post to a Slack channel
9797
id: slack
98-
uses: slackapi/slack-github-action@v1.24.0
98+
uses: slackapi/slack-github-action@v1.25.0
9999
with:
100100
# Slack channel id, channel name, or user id to post message.
101101
# See also: https://api.slack.com/methods/chat.postMessage#channels
@@ -112,7 +112,7 @@ Using JSON payload for constructing a message is also available:
112112
```yaml
113113
- name: Post to a Slack channel
114114
id: slack
115-
uses: slackapi/slack-github-action@v1.24.0
115+
uses: slackapi/slack-github-action@v1.25.0
116116
with:
117117
# Slack channel id, channel name, or user id to post message.
118118
# See also: https://api.slack.com/methods/chat.postMessage#channels
@@ -143,7 +143,7 @@ Please note that **the message update step does not accept a channel name.** Set
143143

144144
```yaml
145145
- id: slack
146-
uses: slackapi/slack-github-action@v1.24.0
146+
uses: slackapi/slack-github-action@v1.25.0
147147
with:
148148
# The following message update step does not accept a channel name.
149149
# Setting a channel ID here for consistency is highly recommended.
@@ -167,7 +167,7 @@ Please note that **the message update step does not accept a channel name.** Set
167167
}
168168
env:
169169
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN}}
170-
- uses: slackapi/slack-github-action@v1.24.0
170+
- uses: slackapi/slack-github-action@v1.25.0
171171
with:
172172
# Unlike the step posting a new message, this step does not accept a channel name.
173173
# Please use a channel ID, not a name here.
@@ -213,7 +213,7 @@ Incoming Webhooks conform to the same rules and functionality as any of Slack's
213213
```yaml
214214
- name: Send custom JSON data to Slack workflow
215215
id: slack
216-
uses: slackapi/slack-github-action@v1.24.0
216+
uses: slackapi/slack-github-action@v1.25.0
217217
with:
218218
# For posting a rich message using Block Kit
219219
payload: |
@@ -241,7 +241,7 @@ If you need to use a proxy to connect with Slack, you can use the `HTTPS_PROXY`
241241
```yaml
242242
- name: Post to a Slack channel via a proxy
243243
id: slack
244-
uses: slackapi/slack-github-action@v1.24.0
244+
uses: slackapi/slack-github-action@v1.25.0
245245
with:
246246
channel-id: 'CHANNEL_ID'
247247
slack-message: 'This message was sent through a proxy'

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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
payload: |
1313
{

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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json"
1313
env:

example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
steps:
88
- name: Send GitHub trigger payload to Slack Workflow Builder
99
id: slack
10-
uses: slackapi/slack-github-action@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
env:
1212
SLACK_WEBHOOK_URL: ${{ 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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
1313
payload: |

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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
1313
payload: "{\"text\": \"posting from a github action\"}"

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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
1313
slack-message: 'posting from a github action!' # The message you want to post

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@v1.24.0
10+
uses: slackapi/slack-github-action@v1.25.0
1111
with:
1212
payload: |
1313
{

0 commit comments

Comments
 (0)