Skip to content

Commit

Permalink
chore(release): tag version 2.0.0
Browse files Browse the repository at this point in the history
Co-authored-by: Fil Maj <fmaj@slack-corp.com>
Co-authored-by: Kazuhiro Sera <ksera@slack-corp.com>
  • Loading branch information
3 people committed Nov 14, 2024
1 parent e9b3a6b commit e598089
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 28 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -476,15 +476,15 @@ 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 }}
payload: |
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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion example-workflows/Technique_2_Slack_App/JSON_payload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion example-workflows/Technique_2_Slack_App/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e598089

Please sign in to comment.