ci: error if the api method or webhook fail to send data
This commit is contained in:
@@ -25,6 +25,7 @@ jobs:
|
||||
id: wfb
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
webhook: ${{ secrets.SLACK_WEBHOOK_TRIGGER }}
|
||||
webhook-type: webhook-trigger
|
||||
payload: |
|
||||
@@ -37,6 +38,7 @@ jobs:
|
||||
id: api
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -46,6 +48,7 @@ jobs:
|
||||
id: slack
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -61,6 +64,7 @@ jobs:
|
||||
id: stats
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -73,6 +77,7 @@ jobs:
|
||||
id: finished
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.update
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -88,6 +93,7 @@ jobs:
|
||||
- name: Include ending statistics
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -97,6 +103,7 @@ jobs:
|
||||
- name: Celebrate wins
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: reactions.add
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -107,6 +114,7 @@ jobs:
|
||||
id: file
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: files.uploadV2
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -117,6 +125,7 @@ jobs:
|
||||
- name: Write one final webhook
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK }}
|
||||
webhook-type: incoming-webhook
|
||||
payload: |
|
||||
|
||||
@@ -66,6 +66,7 @@ jobs:
|
||||
id: wfb
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
webhook: ${{ secrets.SLACK_WEBHOOK_TRIGGER }}
|
||||
webhook-type: webhook-trigger
|
||||
payload: |
|
||||
@@ -82,6 +83,7 @@ jobs:
|
||||
id: message
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -95,6 +97,7 @@ jobs:
|
||||
id: blocks
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -114,6 +117,7 @@ jobs:
|
||||
id: timer
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -131,6 +135,7 @@ jobs:
|
||||
id: finished
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.update
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -148,6 +153,7 @@ jobs:
|
||||
id: done
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: chat.postMessage
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -159,6 +165,7 @@ jobs:
|
||||
id: file
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: files.uploadV2
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -170,6 +177,7 @@ jobs:
|
||||
- name: "integration(method): react to the completed update message"
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
method: reactions.add
|
||||
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||
payload: |
|
||||
@@ -184,6 +192,7 @@ jobs:
|
||||
id: incoming
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK }}
|
||||
webhook-type: incoming-webhook
|
||||
payload: |
|
||||
@@ -207,6 +216,7 @@ jobs:
|
||||
id: payload_file
|
||||
uses: ./
|
||||
with:
|
||||
errors: true
|
||||
payload-file-path: ./.github/resources/.slack/incoming-webhook.json
|
||||
payload-templated: true
|
||||
webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK }}
|
||||
|
||||
Reference in New Issue
Block a user