mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 05:25:34 +00:00
Run whole notification job only on push and failure
This commit is contained in:
parent
fac9504290
commit
8714f8e6bc
5
.github/workflows/ci-main.yml
vendored
5
.github/workflows/ci-main.yml
vendored
@ -315,13 +315,11 @@ jobs:
|
|||||||
notification:
|
notification:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [checks, ubuntu, steam-runtime, mingw, flatpak, translations, macos-intel, windows]
|
needs: [checks, ubuntu, steam-runtime, mingw, flatpak, translations, macos-intel, windows]
|
||||||
if: always()
|
if: failure() && github.event_name == 'push'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: technote-space/workflow-conclusion-action@v3
|
|
||||||
- name: Discord Notification
|
- name: Discord Notification
|
||||||
uses: rjstone/discord-webhook-notify@v1
|
uses: rjstone/discord-webhook-notify@v1
|
||||||
if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push'
|
|
||||||
with:
|
with:
|
||||||
severity: error
|
severity: error
|
||||||
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
|
webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }}
|
||||||
@ -331,7 +329,6 @@ jobs:
|
|||||||
commit url: ${{ github.event.head_commit.url }}
|
commit url: ${{ github.event.head_commit.url }}
|
||||||
- name: IRC Notification
|
- name: IRC Notification
|
||||||
uses: rectalogic/notify-irc@v1
|
uses: rectalogic/notify-irc@v1
|
||||||
if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push'
|
|
||||||
env:
|
env:
|
||||||
COLOR: ${{ fromJSON('"\u0003"') }}
|
COLOR: ${{ fromJSON('"\u0003"') }}
|
||||||
BLUE: 02
|
BLUE: 02
|
||||||
|
Loading…
x
Reference in New Issue
Block a user