This commit is contained in:
839 2020-04-05 23:13:15 +09:00
Родитель 867004f6eb
Коммит 9836f4b719
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 1CBCD9BF8E313B70
1 изменённых файлов: 9 добавлений и 10 удалений

19
.github/workflows/slack-mainline.yml поставляемый
Просмотреть файл

@ -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: