updated to version 1.20.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
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Send GitHub Action trigger data to Slack workflow
|
- name: Send GitHub Action trigger data to Slack workflow
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
```
|
```
|
||||||
@@ -41,7 +41,7 @@ or
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Send custom JSON data to Slack workflow
|
- name: Send custom JSON data to Slack workflow
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
# This data can be any valid JSON from a previous step in the GitHub Action
|
# This data can be any valid JSON from a previous step in the GitHub Action
|
||||||
payload: |
|
payload: |
|
||||||
@@ -59,7 +59,7 @@ or
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Send custom JSON data to Slack workflow
|
- name: Send custom JSON data to Slack workflow
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./payload-slack-content.json"
|
payload-file-path: "./payload-slack-content.json"
|
||||||
env:
|
env:
|
||||||
@@ -85,7 +85,7 @@ Add this Action as a [step][job-step] to your project's GitHub Action Workflow f
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Post to a Slack channel
|
- name: Post to a Slack channel
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
# Slack channel id, channel name, or user id to post message.
|
# Slack channel id, channel name, or user id to post message.
|
||||||
# See also: https://api.slack.com/methods/chat.postMessage#channels
|
# 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
|
```yaml
|
||||||
- name: Post to a Slack channel
|
- name: Post to a Slack channel
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
# Slack channel id, channel name, or user id to post message.
|
# Slack channel id, channel name, or user id to post message.
|
||||||
# See also: https://api.slack.com/methods/chat.postMessage#channels
|
# See also: https://api.slack.com/methods/chat.postMessage#channels
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json"
|
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json"
|
||||||
env:
|
env:
|
||||||
|
|||||||
+1
-1
@@ -7,6 +7,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||||
payload: |
|
payload: |
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||||
payload: "{\"text\": \"posting from a github action\"}"
|
payload: "{\"text\": \"posting from a github action\"}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish to slack channel via bot token
|
- name: Publish to slack channel via bot token
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
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
|
slack-message: 'posting from a github action!' # The message you want to post
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.19.0
|
uses: slackapi/slack-github-action@v1.20.0
|
||||||
with:
|
with:
|
||||||
payload: |
|
payload: |
|
||||||
{
|
{
|
||||||
|
|||||||
Generated
+8
-8
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.19.0",
|
"version": "1.20.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.19.0",
|
"version": "1.20.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.9.0",
|
"@actions/core": "^1.9.0",
|
||||||
@@ -3734,9 +3734,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimist": {
|
"node_modules/minimist": {
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
||||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/mocha": {
|
"node_modules/mocha": {
|
||||||
@@ -8437,9 +8437,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimist": {
|
"minimist": {
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
||||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"mocha": {
|
"mocha": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.19.0",
|
"version": "1.20.0",
|
||||||
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user