chore: release (#606)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent
66834e4b0c
commit
1c0bcf08fe
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"@slack/slack-github-action": patch
|
|
||||||
---
|
|
||||||
|
|
||||||
feat: add instrumentation to address error rates
|
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
# slack-github-action
|
# slack-github-action
|
||||||
|
|
||||||
|
## 3.0.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 66834e4: feat: add instrumentation to address error rates
|
||||||
|
|
||||||
## 3.0.2
|
## 3.0.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ The `errors` option defaults to `false` so failed requests do not cause the step
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Attempt to call an unknown method
|
- name: Attempt to call an unknown method
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.reverse
|
method: chat.reverse
|
||||||
@@ -27,7 +27,7 @@ Additional variables provided in the GitHub event [context](https://github.com/a
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send custom JSON data to Slack workflow
|
- name: Send custom JSON data to Slack workflow
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./payload-slack-content.json"
|
payload-file-path: "./payload-slack-content.json"
|
||||||
payload-templated: true
|
payload-templated: true
|
||||||
@@ -43,7 +43,7 @@ If you need to use a proxy to connect to Slack, you can use the `proxy` option.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post to a Slack channel via a proxy
|
- name: Post to a Slack channel via a proxy
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
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
|
||||||
@@ -68,7 +68,7 @@ The `retries` option can be configured to the needs of your workflow with one of
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Attempt a burst of requests
|
- name: Attempt a burst of requests
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
retries: RAPID
|
retries: RAPID
|
||||||
@@ -86,7 +86,7 @@ In certain circumstances, such as testing the sent payload, a [custom API URL](/
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send to a custom API URL
|
- name: Send to a custom API URL
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
api: http://localhost:8080
|
api: http://localhost:8080
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Pass a [service token](/authentication/tokens/) via the `token` input. This is a
|
|||||||
By default, the latest version of the Slack CLI is installed. To pin a specific version, use the `version` input:
|
By default, the latest version of the Slack CLI is installed. To pin a specific version, use the `version` input:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "version"
|
command: "version"
|
||||||
version: "3.14.0"
|
version: "3.14.0"
|
||||||
@@ -28,7 +28,7 @@ If the `slack` command already exists on `PATH`, installation is skipped entirel
|
|||||||
Provide a `command` input with the Slack CLI command to run, omitting the `slack` prefix.
|
Provide a `command` input with the Slack CLI command to run, omitting the `slack` prefix.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "version"
|
command: "version"
|
||||||
```
|
```
|
||||||
@@ -38,7 +38,7 @@ Provide a `command` input with the Slack CLI command to run, omitting the `slack
|
|||||||
When a workflow is re-run with **Enable debug logging**, the action automatically appends `--verbose` to the CLI command. You can also include `--verbose` in your `command` input manually at any time.
|
When a workflow is re-run with **Enable debug logging**, the action automatically appends `--verbose` to the CLI command. You can also include `--verbose` in your `command` input manually at any time.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "deploy --app ${{ vars.SLACK_APP_ID }} --verbose"
|
command: "deploy --app ${{ vars.SLACK_APP_ID }} --verbose"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
@@ -60,7 +60,7 @@ The following outputs are available after a CLI command runs:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
id: slack
|
id: slack
|
||||||
with:
|
with:
|
||||||
command: "version"
|
command: "version"
|
||||||
@@ -72,7 +72,7 @@ steps:
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "manifest validate --app ${{ vars.SLACK_APP_ID }}"
|
command: "manifest validate --app ${{ vars.SLACK_APP_ID }}"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
@@ -94,7 +94,7 @@ https://github.com/slackapi/slack-github-action/blob/main/example-workflows/Tech
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: slackapi/slack-github-action/[email protected].2
|
- uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "deploy --app ${{ vars.SLACK_APP_ID }} --force"
|
command: "deploy --app ${{ vars.SLACK_APP_ID }} --force"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Posting a message with the [`chat.postMessage`](/reference/methods/chat.postMess
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post text to a Slack channel
|
- name: Post text to a Slack channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -40,7 +40,7 @@ More complex message layouts, such as messages made with [Block Kit](/block-kit/
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post blocks to a Slack channel
|
- name: Post blocks to a Slack channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -61,7 +61,7 @@ Updating a message after it's posted can be done with the [`chat.update`](/refer
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Initiate the deployment launch sequence
|
- name: Initiate the deployment launch sequence
|
||||||
id: launch_sequence
|
id: launch_sequence
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -77,7 +77,7 @@ Updating a message after it's posted can be done with the [`chat.update`](/refer
|
|||||||
- 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/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.update
|
method: chat.update
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -99,7 +99,7 @@ Posting [threaded replies to a message](/messaging/#threading) from a past job c
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Initiate a deployment
|
- name: Initiate a deployment
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
id: deployment_message
|
id: deployment_message
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
@@ -108,7 +108,7 @@ Posting [threaded replies to a message](/messaging/#threading) from a past job c
|
|||||||
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/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -124,7 +124,7 @@ Calling [a Slack API method](/reference/methods) with [`@slack/web-api`](/tools/
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Share a file to that channel
|
- name: Share a file to that channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: files.uploadV2
|
method: files.uploadV2
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Add the collected webhook from above to a GitHub workflow and configure the step
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Post a message in a channel
|
- name: Post a message in a channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: incoming-webhook
|
webhook-type: incoming-webhook
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ In the example below, the default GitHub event [context](https://github.com/acti
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send GitHub Action data to a Slack workflow
|
- name: Send GitHub Action data to a Slack workflow
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
@@ -45,7 +45,7 @@ Provided input values for payload information are sent to the webhook URL after
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send custom event details to a Slack workflow
|
- name: Send custom event details to a Slack workflow
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: webhook-trigger
|
webhook-type: webhook-trigger
|
||||||
@@ -60,7 +60,7 @@ Input values for the payload to be sent can also be provided in a file, either i
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send a saved artifact to a Slack workflow
|
- name: Send a saved artifact to a Slack workflow
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./artifacts.json"
|
payload-file-path: "./artifacts.json"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
@@ -75,7 +75,7 @@ The `payload-delimiter` option will flatten the input payload using the provided
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Flatten the default GitHub payload
|
- name: Flatten the default GitHub payload
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Draft with these release notes details
|
- name: Draft with these release notes details
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: webhook-trigger
|
webhook-type: webhook-trigger
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Start the Slack workflow
|
- name: Start the Slack workflow
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/builds.data.json"
|
payload-file-path: "./example-workflows/Technique_1_Slack_Workflow_Builder/builds.data.json"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Update the channel topic
|
- name: Update the channel topic
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-delimiter: "_"
|
payload-delimiter: "_"
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Find correspondences
|
- name: Find correspondences
|
||||||
id: email
|
id: email
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: users.lookupByEmail # https://docs.slack.dev/reference/methods/users.lookupByEmail/
|
method: users.lookupByEmail # https://docs.slack.dev/reference/methods/users.lookupByEmail/
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Send a direct message
|
- name: Send a direct message
|
||||||
if: ${{ steps.email.outputs.ok }}
|
if: ${{ steps.email.outputs.ok }}
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Create a new Slack channel for communications
|
- name: Create a new Slack channel for communications
|
||||||
id: conversation
|
id: conversation
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: conversations.create # https://docs.slack.dev/reference/methods/conversations.create/
|
method: conversations.create # https://docs.slack.dev/reference/methods/conversations.create/
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
name: issue-${{ github.event.issue.number }}
|
name: issue-${{ github.event.issue.number }}
|
||||||
|
|
||||||
- name: Send the issue link into the Slack channel
|
- name: Send the issue link into the Slack channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Gather information of those to add
|
- name: Gather information of those to add
|
||||||
id: members
|
id: members
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: usergroups.users.list # https://docs.slack.dev/reference/methods/usergroups.users.list/
|
method: usergroups.users.list # https://docs.slack.dev/reference/methods/usergroups.users.list/
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
echo "SLACK_USERGROUP_USER_IDS=$SLACK_USERGROUP_USER_IDS" >> $GITHUB_ENV
|
echo "SLACK_USERGROUP_USER_IDS=$SLACK_USERGROUP_USER_IDS" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Add the usergroup to the channel
|
- name: Add the usergroup to the channel
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: conversations.invite # https://docs.slack.dev/reference/methods/conversations.invite/
|
method: conversations.invite # https://docs.slack.dev/reference/methods/conversations.invite/
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Write the review
|
- name: Write the review
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: incoming-webhook
|
webhook-type: incoming-webhook
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Forward a saved message
|
- name: Forward a saved message
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
payload-file-path: "./example-workflows/Technique_3_Slack_Incoming_Webhook/saved.data.json"
|
payload-file-path: "./example-workflows/Technique_3_Slack_Incoming_Webhook/saved.data.json"
|
||||||
payload-templated: true
|
payload-templated: true
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Greet the reader
|
- name: Greet the reader
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
webhook-type: incoming-webhook
|
webhook-type: incoming-webhook
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Look up the Slack user by email
|
- name: Look up the Slack user by email
|
||||||
id: email
|
id: email
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
method: users.lookupByEmail # https://docs.slack.dev/reference/methods/users.lookupByEmail/
|
method: users.lookupByEmail # https://docs.slack.dev/reference/methods/users.lookupByEmail/
|
||||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
@@ -42,14 +42,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Add or remove the collaborator
|
- name: Add or remove the collaborator
|
||||||
if: ${{ steps.email.outputs.ok }}
|
if: ${{ steps.email.outputs.ok }}
|
||||||
uses: slackapi/slack-github-action/[email protected].2
|
uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "collaborators ${{ inputs.add && 'add' || 'remove' }} ${{ inputs.email }} --app ${{ vars.SLACK_APP_ID }}"
|
command: "collaborators ${{ inputs.add && 'add' || 'remove' }} ${{ inputs.email }} --app ${{ vars.SLACK_APP_ID }}"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
|
|
||||||
- name: Post a confirmation message
|
- name: Post a confirmation message
|
||||||
if: ${{ steps.email.outputs.ok }}
|
if: ${{ steps.email.outputs.ok }}
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
method: chat.postMessage # https://docs.slack.dev/reference/methods/chat.postMessage/
|
||||||
|
|||||||
@@ -16,13 +16,13 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Deploy the app
|
- name: Deploy the app
|
||||||
uses: slackapi/slack-github-action/[email protected].2
|
uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "deploy --app ${{ vars.SLACK_APP_ID }} --force"
|
command: "deploy --app ${{ vars.SLACK_APP_ID }} --force"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
|
|
||||||
- name: Post a deployment message
|
- name: Post a deployment message
|
||||||
uses: slackapi/[email protected].2
|
uses: slackapi/[email protected].3
|
||||||
with:
|
with:
|
||||||
errors: true
|
errors: true
|
||||||
method: chat.postMessage
|
method: chat.postMessage
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Validate the manifest
|
- name: Validate the manifest
|
||||||
uses: slackapi/slack-github-action/[email protected].2
|
uses: slackapi/slack-github-action/[email protected].3
|
||||||
with:
|
with:
|
||||||
command: "manifest validate --app ${{ vars.SLACK_APP_ID }}"
|
command: "manifest validate --app ${{ vars.SLACK_APP_ID }}"
|
||||||
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
token: ${{ secrets.SLACK_SERVICE_TOKEN }}
|
||||||
|
|||||||
Generated
+4
-4
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "@slack/slack-github-action",
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "slack-github-action",
|
"name": "@slack/slack-github-action",
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^3.0.1",
|
"@actions/core": "^3.0.1",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@slack/slack-github-action",
|
"name": "@slack/slack-github-action",
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user