[#56] Update action-slack
This commit is contained in:
Родитель
867004f6eb
Коммит
9836f4b719
|
@ -2,43 +2,42 @@ name: Slack Mainline
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- v2
|
||||
- v3
|
||||
|
||||
jobs:
|
||||
notification:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Succeeded Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: success
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Failed Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: failure
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Cancelled Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: cancelled
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Legacy Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
username: legacy user
|
||||
|
@ -47,10 +46,10 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LEGACY_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Custom Field Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: custom
|
||||
payload: |
|
||||
custom_payload: |
|
||||
{
|
||||
text: "Custom Field Check",
|
||||
attachments: [{
|
||||
|
@ -82,7 +81,7 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FOR_INTEGRATION_TEST }}
|
||||
- name: Check
|
||||
uses: 8398a7/action-slack@v2
|
||||
uses: 8398a7/action-slack@v3
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
env:
|
||||
|
|
Загрузка…
Ссылка в новой задаче