Skip to content

Commit 8034ffc

Browse files
chore: update slackapi/slack-github-action action to v2 (#510)
* chore: update slackapi/slack-github-action action to v2 * code changes needed to upgrade to slack github action v2 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Kyle Hoehns <[email protected]>
1 parent 76264b2 commit 8034ffc

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,23 @@ jobs:
8080
shell: bash
8181

8282
- name: Notify Slack Success
83-
uses: slackapi/[email protected]
84-
env:
85-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
83+
uses: slackapi/[email protected]
8684
with:
87-
channel-id: 'coding-exercise-queue'
88-
slack-message: ':white_check_mark: Deployment to *dev* succeeded'
85+
method: chat.postMessage
86+
token: ${{ secrets.SLACK_BOT_TOKEN }}
87+
payload: |
88+
channel: coding-exercise-queue
89+
text: ":white_check_mark: Deployment to *dev* succeeded"
8990
9091
- name: Notify Slack Failure
91-
uses: slackapi/slack-github-action@v1.27.1
92+
uses: slackapi/slack-github-action@v2.1.1
9293
if: ${{ failure() }}
93-
env:
94-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
9594
with:
96-
channel-id: 'coding-exercise-queue'
97-
slack-message: ':x: Deployment to *dev* failed'
95+
method: chat.postMessage
96+
token: ${{ secrets.SLACK_BOT_TOKEN }}
97+
payload: |
98+
channel: coding-exercise-queue
99+
text: ":x: Deployment to *dev* failed"
98100
99101
deploy-prod:
100102
name: Deploy Prod
@@ -141,18 +143,20 @@ jobs:
141143
shell: bash
142144

143145
- name: Notify Slack Success
144-
uses: slackapi/[email protected]
145-
env:
146-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
146+
uses: slackapi/[email protected]
147147
with:
148-
channel-id: 'coding-exercise-queue'
149-
slack-message: ':white_check_mark: Deployment to *prod* succeeded'
148+
method: chat.postMessage
149+
token: ${{ secrets.SLACK_BOT_TOKEN }}
150+
payload: |
151+
channel: coding-exercise-queue
152+
text: ":white_check_mark: Deployment to *prod* succeeded"
150153
151154
- name: Notify Slack Failure
152-
uses: slackapi/slack-github-action@v1.27.1
155+
uses: slackapi/slack-github-action@v2.1.1
153156
if: ${{ failure() }}
154-
env:
155-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
156157
with:
157-
channel-id: 'coding-exercise-queue'
158-
slack-message: ':x: Deployment to *prod* failed'
158+
method: chat.postMessage
159+
token: ${{ secrets.SLACK_BOT_TOKEN }}
160+
payload: |
161+
channel: coding-exercise-queue
162+
text: ":x: Deployment to *prod* failed"

0 commit comments

Comments
 (0)