This commit is contained in:
Steve Gill
2022-05-03 23:13:36 -07:00
parent 3b53905be1
commit 25e41412fd
9 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -31,7 +31,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
```yaml
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
```
@@ -41,7 +41,7 @@ or
```yaml
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
@@ -59,7 +59,7 @@ or
```yaml
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
with:
payload-file-path: "./payload-slack-content.json"
env:
@@ -85,7 +85,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
```yaml
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
@@ -101,7 +101,7 @@ Using JSON payload for constructing a message is also available:
```yaml
- name: Post to a Slack channel
id: slack
uses: slackapi/[email protected]6.0
uses: slackapi/[email protected]9.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Send GitHub trigger payload to Slack Workflow Builder
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
with:
payload: |
{
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Send GitHub trigger payload to Slack Workflow Builder
id: slack
uses: slackapi/[email protected]8.0
uses: slackapi/[email protected]9.0
with:
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/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]8.0
uses: slackapi/[email protected]9.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]8.0
uses: slackapi/[email protected]9.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]8.0
uses: slackapi/[email protected]9.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]8.0
uses: slackapi/[email protected]9.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
@@ -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]9.0
with:
payload: |
{
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.18.0",
"version": "1.19.0",
"description": "The official slack github action. Use this to send data into your Slack workspace",
"main": "dist/index.js",
"scripts": {