diff --git a/README.md b/README.md index 157863df..ee607ab9 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,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/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload-delimiter: "_" env: @@ -57,7 +57,7 @@ or ```yaml - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: # This data can be any valid JSON from a previous step in the GitHub Action payload: | @@ -76,7 +76,7 @@ or ```yaml - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload-file-path: "./payload-slack-content.json" env: @@ -90,7 +90,7 @@ or ```yaml - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload-file-path: "./payload-slack-content.json" payload-file-path-parsed: false @@ -117,7 +117,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/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: # Slack channel id, channel name, or user id to post message. # See also: https://api.slack.com/methods/chat.postMessage#channels @@ -134,7 +134,7 @@ Using JSON payload for constructing a message is also available: ```yaml - name: Post to a Slack channel id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: # Slack channel id, channel name, or user id to post message. # See also: https://api.slack.com/methods/chat.postMessage#channels @@ -165,7 +165,7 @@ Please note that **the message update step does not accept a channel name.** Set ```yaml - id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: # The following message update step does not accept a channel name. # Setting a channel ID here for consistency is highly recommended. @@ -189,7 +189,7 @@ Please note that **the message update step does not accept a channel name.** Set } env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} -- uses: slackapi/slack-github-action@v1.26.0 +- uses: slackapi/slack-github-action@v1.27.0 with: # Unlike the step posting a new message, this step does not accept a channel name. # Please use a channel ID, not a name here. @@ -224,7 +224,7 @@ Please note that **reply to a message does not accept a channel name.** Set a ch ```yaml - id: deployment_message - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: channel-id: "CHANNEL_ID" payload: | @@ -233,7 +233,7 @@ Please note that **reply to a message does not accept a channel name.** Set a ch } env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} -- uses: slackapi/slack-github-action@v1.26.0 +- uses: slackapi/slack-github-action@v1.27.0 with: # Unlike the step posting a new message, this step does not accept a channel name. # Please use a channel ID, not a name here. @@ -266,7 +266,7 @@ Incoming Webhooks conform to the same rules and functionality as any of Slack's ```yaml - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: # For posting a rich message using Block Kit payload: | @@ -294,7 +294,7 @@ If you need to use a proxy to connect with Slack, you can use the `HTTPS_PROXY` ```yaml - name: Post to a Slack channel via a proxy id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: channel-id: 'CHANNEL_ID' slack-message: 'This message was sent through a proxy' 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 980c7759..e0231d61 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload: | { 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 e010dfaa..f5bab0c7 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/payloads/example.json" env: 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 f19d91df..6f558ebf 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,6 +7,6 @@ jobs: steps: - name: Send GitHub trigger payload to Slack Workflow Builder id: slack - uses: slackapi/slack-github-action@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 env: SLACK_WEBHOOK_URL: ${{ 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 50288f40..17a432e3 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to payload: | 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 3be913ba..dca61976 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to payload: "{\"text\": \"posting from a github action\"}" diff --git a/example-workflows/Technique_2_Slack_App/main.yml b/example-workflows/Technique_2_Slack_App/main.yml index 208be635..a4152d39 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.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 diff --git a/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml b/example-workflows/Technique_3_Slack_Incoming_Webhook/main.yml index d4587fbf..2daae76b 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@v1.26.0 + uses: slackapi/slack-github-action@v1.27.0 with: payload: | { diff --git a/package-lock.json b/package-lock.json index 22cc63a4..4025ff66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,35 +1,35 @@ { "name": "slack-github-action", - "version": "1.26.0", + "version": "1.27.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "slack-github-action", - "version": "1.26.0", + "version": "1.27.0", "license": "MIT", "dependencies": { - "@actions/core": "1.10.1", - "@actions/github": "6.0.0", + "@actions/core": "^1.10.1", + "@actions/github": "^6.0.0", "@slack/web-api": "^7.3.4", "axios": "^1.7.5", "flat": "^5.0.2", - "https-proxy-agent": "7.0.5", - "markup-js": "1.5.21", - "whatwg-url": "14.0.0" + "https-proxy-agent": "^7.0.5", + "markup-js": "^1.5.21", + "whatwg-url": "^14.0.0" }, "devDependencies": { - "@vercel/ncc": "0.38.1", - "chai": "4.5.0", - "eslint": "8.57.0", - "eslint-config-airbnb-base": "15.0.0", - "eslint-plugin-import": "2.29.1", - "eslint-plugin-jsdoc": "48.10.2", - "eslint-plugin-node": "11.1.0", - "mocha": "10.7.0", - "nyc": "17.0.0", - "rewiremock": "3.14.5", - "sinon": "18.0.0" + "@vercel/ncc": "^0.38.1", + "chai": "^4.5.0", + "eslint": "^8.57.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jsdoc": "^48.10.2", + "eslint-plugin-node": "^11.1.0", + "mocha": "^10.7.0", + "nyc": "^17.0.0", + "rewiremock": "^3.14.5", + "sinon": "^18.0.0" }, "engines": { "node": ">=20.0.0", diff --git a/package.json b/package.json index 9123eb14..63d94025 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slack-github-action", - "version": "1.26.0", + "version": "1.27.0", "description": "The official slack github action. Use this to send data into your Slack workspace", "main": "dist/index.js", "scripts": {