File tree 2 files changed +34
-70
lines changed
2 files changed +34
-70
lines changed Original file line number Diff line number Diff line change @@ -184,60 +184,30 @@ jobs:
184
184
- name : Notify Slack
185
185
186
186
with :
187
- channel-id : ${{ secrets.SLACK_CHANNEL_ID }}
187
+ method : chat.postMessage
188
+ token : ${{ secrets.SLACK_BOT_TOKEN }}
188
189
payload : |
189
- {
190
- "blocks": [
191
- {
192
- "type": "section",
193
- "text": {
194
- "type": "mrkdwn",
195
- "text": ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
196
- }
197
- },
198
- {
199
- "type": "divider"
200
- },
201
- {
202
- "type": "section",
203
- "fields": [
204
- {
205
- "type": "mrkdwn",
206
- "text": "*Build Result:*\n${{ needs.integration_tests.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
207
- },
208
- {
209
- "type": "mrkdwn",
210
- "text": "*Branch:*\n`${{ github.ref_name }}`"
211
- }
212
- ]
213
- },
214
- {
215
- "type": "section",
216
- "fields": [
217
- {
218
- "type": "mrkdwn",
219
- "text": "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
220
- },
221
- {
222
- "type": "mrkdwn",
223
- "text": "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
224
- }
225
- ]
226
- },
227
- {
228
- "type": "divider"
229
- },
230
- {
231
- "type": "context",
232
- "elements": [
233
- {
234
- "type": "mrkdwn",
235
- "text": "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
236
- }
237
- ]
238
- }
239
- ]
240
- }
241
- env :
242
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
243
-
190
+ channel: ${{ secrets.SLACK_CHANNEL_ID }}
191
+ blocks:
192
+ - type: section
193
+ text:
194
+ type: mrkdwn
195
+ text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
196
+ - type: divider
197
+ - type: section
198
+ fields:
199
+ - type: mrkdwn
200
+ text: "*Build Result:*\n${{ needs.integration_tests.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
201
+ - type: mrkdwn
202
+ text: "*Branch:*\n`${{ github.ref_name }}`"
203
+ - type: section
204
+ fields:
205
+ - type: mrkdwn
206
+ text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
207
+ - type: mrkdwn
208
+ text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
209
+ - type: divider
210
+ - type: context
211
+ elements:
212
+ - type: mrkdwn
213
+ text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
Original file line number Diff line number Diff line change @@ -13,18 +13,12 @@ jobs:
13
13
id : main_message
14
14
15
15
with :
16
- channel-id : ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }}
16
+ method : chat.postMessage
17
+ token : ${{ secrets.SLACK_BOT_TOKEN }}
17
18
payload : |
18
- {
19
- "blocks": [
20
- {
21
- "type": "section",
22
- "text": {
23
- "type": "mrkdwn",
24
- "text": "*New Release Published: _terraform-provider-linode_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"
25
- }
26
- }
27
- ]
28
- }
29
- env :
30
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
19
+ channel: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }}
20
+ blocks:
21
+ - type: section
22
+ text:
23
+ type: mrkdwn
24
+ text: "*New Release Published: _terraform-provider-linode_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"
You can’t perform that action at this time.
0 commit comments