File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,13 @@ jobs:
105105 env :
106106 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
107107 - if : failure()
108- uses : slackapi/slack-github-action@v1.27 .0
108+ uses : slackapi/slack-github-action@v2.0 .0
109109 with :
110- channel-id : alerts
110+ method : chat.postMessage
111+ token : ${{ secrets.SLACK_BOT_TOKEN }}
111112 payload : |
112113 {
114+ "channel": "alerts",
113115 "text": "Deployment of `${{ github.event.repository.name }}` failed",
114116 "blocks": [
115117 {
@@ -121,8 +123,6 @@ jobs:
121123 }
122124 ]
123125 }
124- env :
125- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
126126 deploy-publish :
127127 if : github.ref == 'refs/heads/main'
128128 needs : [build-api, build-publish, docker-build]
@@ -134,11 +134,13 @@ jobs:
134134 env :
135135 FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN_PUBLISH }}
136136 - if : failure()
137- uses : slackapi/slack-github-action@v1.27 .0
137+ uses : slackapi/slack-github-action@v2.0 .0
138138 with :
139- channel-id : alerts
139+ method : chat.postMessage
140+ token : ${{ secrets.SLACK_BOT_TOKEN }}
140141 payload : |
141142 {
143+ "channel": "alerts",
142144 "text": "Deployment of `${{ github.event.repository.name }}` failed",
143145 "blocks": [
144146 {
@@ -150,5 +152,3 @@ jobs:
150152 }
151153 ]
152154 }
153- env :
154- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments