Skip to content

Commit 8283d4e

Browse files
authored
Fix slack actions webhooks format (#2071)
1 parent 79ea7e3 commit 8283d4e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
steps:
2929
- name: Notifying about failed tests!
3030
uses: slackapi/[email protected]
31-
env:
32-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_TESTS_FAILURE_WEBHOOK_URL }}
3331
with:
32+
webhook: ${{ secrets.SLACK_SCHEDULED_TESTS_FAILURE_WEBHOOK_URL }}
33+
webhook-type: webhook-trigger
3434
payload: |
3535
{
3636
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

.github/workflows/nightly.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ jobs:
185185
steps:
186186
- name: Notifying about Nightly fail!
187187
uses: slackapi/[email protected]
188-
env:
189-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NIGHTLY_FAILURE_WEBHOOK_URL }}
190188
with:
189+
webhook: ${{ secrets.SLACK_NIGHTLY_FAILURE_WEBHOOK_URL }}
190+
webhook-type: webhook-trigger
191191
payload: |
192192
{
193193
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
@@ -202,9 +202,9 @@ jobs:
202202
steps:
203203
- name: Notifying about check fail!
204204
uses: slackapi/[email protected]
205-
env:
206-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NIGHTLY_CHECK_FAILURE_WEBHOOK_URL }}
207205
with:
206+
webhook: ${{ secrets.SLACK_NIGHTLY_CHECK_FAILURE_WEBHOOK_URL }}
207+
webhook-type: webhook-trigger
208208
payload: |
209209
{
210210
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

0 commit comments

Comments
 (0)