release v1.17.0
This commit is contained in:
@@ -31,7 +31,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
|
||||
```
|
||||
- name: Send GitHub Action trigger data to Slack workflow
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
```
|
||||
@@ -41,7 +41,7 @@ or
|
||||
```
|
||||
- name: Send custom JSON data to Slack workflow
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload: "{\"key\":\"value\",\"foo\":\"bar\"}" # This data can be any valid JSON from a previous step in the GitHub Action
|
||||
env:
|
||||
@@ -54,7 +54,7 @@ or
|
||||
```
|
||||
- name: Send custom JSON data to Slack workflow
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload-file-path: "./payload-slack-content.json"
|
||||
env:
|
||||
@@ -80,7 +80,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
|
||||
```
|
||||
- name: Post to a Slack channel
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
channel-id: 'CHANNEL_ID' # Slack channel id or user id to post message. https://api.slack.com/methods/chat.postMessage#channels
|
||||
slack-message: 'posting from a github action!'
|
||||
@@ -107,7 +107,7 @@ Incoming Webhooks conform to the same rules and functionality as any of Slack's
|
||||
```
|
||||
- name: Send custom JSON data to Slack workflow
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload: "{\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"You have a new request: \"}},{\"type\":\"section\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"*Type:* Computer (laptop)\"},{\"type\":\"mrkdwn\",\"text\":\"*When:* Submitted Aut 10\"}]}]}"
|
||||
env:
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload: "{\"text\":\"Danny Torrence left a 1 star review for your property.\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"Danny Torrence left the following review for your property:\"}},{\"type\":\"section\",\"block_id\":\"section567\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"<https://example.com|Overlook Hotel> \\n :star: \\n Doors had too many axe holes, guest in room 237 was far too rowdy, whole place felt stuck in the 1920s.\"},\"accessory\":{\"type\":\"image\",\"image_url\":\"https://is5-ssl.mzstatic.com/image/thumb/Purple3/v4/d3/72/5c/d3725c8f-c642-5d69-1904-aa36e4297885/source/256x256bb.jpg\",\"alt_text\":\"Haunted hotel image\"}},{\"type\":\"section\",\"block_id\":\"section789\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"*Average Rating*\\n1.0\"}]}]}"
|
||||
env:
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
|
||||
env:
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
payload-file-path: "./example-workflows/payloads/example.json"
|
||||
env:
|
||||
|
||||
@@ -7,6 +7,6 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||
payload: |
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||
payload: "{\"text\":\"posting from a github action\"}"
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Publish to slack channel via bot token
|
||||
id: slack
|
||||
uses: slackapi/[email protected]6.0
|
||||
uses: slackapi/[email protected]7.0
|
||||
with:
|
||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||
slack-message: 'posting from a github action!' # The message you want to post
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "slack-github-action",
|
||||
"version": "1.16.0",
|
||||
"version": "1.17.0",
|
||||
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user