From e598089eaef53883a2d9b325e044899548518a03 Mon Sep 17 00:00:00 2001 From: "@zimeg" Date: Thu, 14 Nov 2024 12:57:47 -0800 Subject: [PATCH] chore(release): tag version 2.0.0 Co-authored-by: Fil Maj Co-authored-by: Kazuhiro Sera --- README.md | 36 +++++++++---------- .../JSON_payload.yml | 2 +- .../JSON_payload_from_file.yml | 2 +- .../default_GitHub_Trigger_payload.yml | 2 +- .../Technique_2_Slack_App/JSON_payload.yml | 2 +- .../JSON_payload_as_text.yml | 2 +- .../Technique_2_Slack_App/main.yml | 2 +- .../main.yml | 2 +- package-lock.json | 4 +-- package.json | 2 +- 10 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 3fb90404..b08c75b7 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ workflow are sent to the provided webhook URL: ```yaml - 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: payload-delimiter: "_" webhook: ${{ secrets.SLACK_WEBHOOK_URL }} @@ -100,7 +100,7 @@ the job is started: ```yaml - 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: webhook: ${{ secrets.SLACK_WEBHOOK_URL }} webhook-type: webhook-trigger @@ -116,7 +116,7 @@ in JSON or YAML format: ```yaml - 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: payload-file-path: "./artifacts.json" webhook: ${{ secrets.SLACK_WEBHOOK_URL }} @@ -165,7 +165,7 @@ bot associated with your app to the channel for posting: ```yaml - name: Post to a Slack channel - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -181,7 +181,7 @@ blocks, can also be sent with one of the Slack API methods: ```yaml - name: Post to a Slack channel - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -204,7 +204,7 @@ outputs from past steps as inputs to current ones: ```yaml - name: Initiate the deployment launch sequence id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -220,7 +220,7 @@ outputs from past steps as inputs to current ones: - name: Countdown until launch run: sleep 10 - name: Update the original message with success - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.update token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -244,7 +244,7 @@ be done by including the `thread_ts` attribute of the parent message in the ```yaml - name: Initiate a deployment - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 id: deployment_message with: 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 }} text: "Deployment started :eyes:" - name: Conclude the deployment - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -271,7 +271,7 @@ convenience of the [`files.uploadV2`][files.uploadV2] method: ```yaml - name: Share a file to that channel - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: files.uploadV2 token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -315,7 +315,7 @@ using [`mrkdwn`][mrkdwn] formatting values for a message or ```yaml - name: Post a message in a channel - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL }} webhook-type: incoming-webhook @@ -343,7 +343,7 @@ to fail. This result can still be gathered from the `ok` output. ```yaml - 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: errors: true method: chat.reverse @@ -367,7 +367,7 @@ delimiter and will also make values stringified: ```yaml - 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: payload-delimiter: "_" webhook: ${{ secrets.SLACK_WEBHOOK_URL }} @@ -386,7 +386,7 @@ input payload with the `payload-templated` option: ```yaml - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: payload-file-path: "./payload-slack-content.json" payload-templated: true @@ -405,7 +405,7 @@ configuring a proxy is the same for all techniques: ```yaml - 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: method: chat.postMessage proxy: "http://proxy.example.org:8080" # Change this to a custom value @@ -433,7 +433,7 @@ these values: ```yaml - name: Attempt a burst of requests - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage retries: RAPID @@ -476,7 +476,7 @@ a Slack channel before posting a message: ```yaml - name: Create a new Slack channel for recent changes id: conversation - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: conversations.create token: ${{ secrets.SLACK_BOT_TOKEN }} @@ -484,7 +484,7 @@ a Slack channel before posting a message: name: pull-request-review-${{ github.sha }} - name: Send the pull request link into the Slack channel if: ${{ steps.conversation.outputs.ok }} - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload.yml b/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload.yml index 24139f4d..38ea305e 100644 --- a/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload.yml +++ b/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL }} webhook-type: webhook-trigger diff --git a/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload_from_file.yml b/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload_from_file.yml index 52d36cf6..f8ae7f41 100644 --- a/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload_from_file.yml +++ b/example-workflows/Technique_1_Slack_Workflow_Builder/JSON_payload_from_file.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json" webhook: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml b/example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml index 292cb32f..aa7f98a8 100644 --- a/example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml +++ b/example-workflows/Technique_1_Slack_Workflow_Builder/default_GitHub_Trigger_payload.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: payload-delimiter: "_" webhook: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/example-workflows/Technique_2_Slack_App/JSON_payload.yml b/example-workflows/Technique_2_Slack_App/JSON_payload.yml index 7cdcf23b..c4ee7b00 100644 --- a/example-workflows/Technique_2_Slack_App/JSON_payload.yml +++ b/example-workflows/Technique_2_Slack_App/JSON_payload.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: token: ${{ secrets.SLACK_BOT_TOKEN }} method: chat.postMessage diff --git a/example-workflows/Technique_2_Slack_App/JSON_payload_as_text.yml b/example-workflows/Technique_2_Slack_App/JSON_payload_as_text.yml index 0ac8f1d5..5ab0c5da 100644 --- a/example-workflows/Technique_2_Slack_App/JSON_payload_as_text.yml +++ b/example-workflows/Technique_2_Slack_App/JSON_payload_as_text.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/example-workflows/Technique_2_Slack_App/main.yml b/example-workflows/Technique_2_Slack_App/main.yml index 8029a5ed..e0e859dd 100644 --- a/example-workflows/Technique_2_Slack_App/main.yml +++ b/example-workflows/Technique_2_Slack_App/main.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Publish to slack channel via bot token id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: method: chat.postMessage token: ${{ secrets.SLACK_BOT_TOKEN }} diff --git a/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml b/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml index 699e2422..eecb8dc8 100644 --- a/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml +++ b/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v2-development + uses: slackapi/slack-github-action@v2.0.0 with: webhook: ${{ secrets.SLACK_WEBHOOK_URL }} webhook-type: webhook-trigger diff --git a/package-lock.json b/package-lock.json index fddd179c..45ad19f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "slack-github-action", - "version": "2.0.0-development", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "slack-github-action", - "version": "2.0.0-development", + "version": "2.0.0", "license": "MIT", "dependencies": { "@actions/core": "^1.11.1", diff --git a/package.json b/package.json index 17246824..07ab435e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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", "main": "dist/index.js", "type": "module",