chore(release): tag version 2.0.0
Co-authored-by: Fil Maj <[email protected]> Co-authored-by: Kazuhiro Sera <[email protected]>
This commit is contained in:
co-authored by
Fil Maj
Kazuhiro Sera
parent
e9b3a6beef
commit
e598089eae
@@ -79,7 +79,7 @@ workflow are sent to the provided webhook URL:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send GitHub Action data to a Slack workflow
|
- name: Send GitHub Action data to a Slack workflow
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
@@ -100,7 +100,7 @@ the job is started:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send custom event details to a Slack workflow
|
- name: Send custom event details to a Slack workflow
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: webhook-trigger
|
webhook-type: webhook-trigger
|
||||||
@@ -116,7 +116,7 @@ in JSON or YAML format:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send a saved artifact to a Slack workflow
|
- name: Send a saved artifact to a Slack workflow
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./artifacts.json"
|
payload-file-path: "./artifacts.json"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
@@ -165,7 +165,7 @@ bot associated with your app to the channel for posting:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post to a Slack channel
|
- name: Post to a Slack channel
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -181,7 +181,7 @@ blocks, can also be sent with one of the Slack API methods:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post to a Slack channel
|
- name: Post to a Slack channel
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -204,7 +204,7 @@ outputs from past steps as inputs to current ones:
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Initiate the deployment launch sequence
|
- name: Initiate the deployment launch sequence
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -220,7 +220,7 @@ outputs from past steps as inputs to current ones:
|
|||||||
- name: Countdown until launch
|
- name: Countdown until launch
|
||||||
run: sleep 10
|
run: sleep 10
|
||||||
- name: Update the original message with success
|
- name: Update the original message with success
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.update
|
method: chat.update
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -244,7 +244,7 @@ be done by including the `thread_ts` attribute of the parent message in the
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Initiate a deployment
|
- name: Initiate a deployment
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
id: deployment_message
|
id: deployment_message
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
@@ -253,7 +253,7 @@ be done by including the `thread_ts` attribute of the parent message in the
|
|||||||
channel: ${{ secrets.SLACK_CHANNEL_ID }}
|
channel: ${{ secrets.SLACK_CHANNEL_ID }}
|
||||||
text: "Deployment started :eyes:"
|
text: "Deployment started :eyes:"
|
||||||
- name: Conclude the deployment
|
- name: Conclude the deployment
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -271,7 +271,7 @@ convenience of the [`files.uploadV2`][files.uploadV2] method:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Share a file to that channel
|
- name: Share a file to that channel
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: files.uploadV2
|
method: files.uploadV2
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -315,7 +315,7 @@ using [`mrkdwn`][mrkdwn] formatting values for a message or
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post a message in a channel
|
- name: Post a message in a channel
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: incoming-webhook
|
webhook-type: incoming-webhook
|
||||||
@@ -343,7 +343,7 @@ to fail. This result can still be gathered from the `ok` output.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send GitHub Action data to a Slack workflow
|
- name: Send GitHub Action data to a Slack workflow
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.reverse
|
method: chat.reverse
|
||||||
@@ -367,7 +367,7 @@ delimiter and will also make values stringified:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send GitHub Action data to a Slack workflow
|
- name: Send GitHub Action data to a Slack workflow
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
@@ -386,7 +386,7 @@ input payload with the `payload-templated` option:
|
|||||||
```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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./payload-slack-content.json"
|
payload-file-path: "./payload-slack-content.json"
|
||||||
payload-templated: true
|
payload-templated: true
|
||||||
@@ -405,7 +405,7 @@ configuring a proxy is the same for all techniques:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post to a Slack channel via a proxy
|
- name: Post to a Slack channel via a proxy
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
proxy: "http://proxy.example.org:8080" # Change this to a custom value
|
proxy: "http://proxy.example.org:8080" # Change this to a custom value
|
||||||
@@ -433,7 +433,7 @@ these values:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Attempt a burst of requests
|
- name: Attempt a burst of requests
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
retries: RAPID
|
retries: RAPID
|
||||||
@@ -476,7 +476,7 @@ a Slack channel before posting a message:
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Create a new Slack channel for recent changes
|
- name: Create a new Slack channel for recent changes
|
||||||
id: conversation
|
id: conversation
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: conversations.create
|
method: conversations.create
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -484,7 +484,7 @@ a Slack channel before posting a message:
|
|||||||
name: pull-request-review-${{ github.sha }}
|
name: pull-request-review-${{ github.sha }}
|
||||||
- name: Send the pull request link into the Slack channel
|
- name: Send the pull request link into the Slack channel
|
||||||
if: ${{ steps.conversation.outputs.ok }}
|
if: ${{ steps.conversation.outputs.ok }}
|
||||||
uses: slackapi/slack-github-action@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: webhook-trigger
|
webhook-type: webhook-trigger
|
||||||
|
|||||||
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.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"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
+1
-1
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ 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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
|
|||||||
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -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@v2-development
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: webhook-trigger
|
webhook-type: webhook-trigger
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "2.0.0-development",
|
"version": "2.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "2.0.0-development",
|
"version": "2.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "2.0.0-development",
|
"version": "2.0.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",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Reference in New Issue
Block a user