Notify only on main repo
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -522,6 +522,7 @@ jobs:
|
|||||||
notify-discord:
|
notify-discord:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
needs: [android, flash, hashlink, html5, ios, linux, macos, neko, windows]
|
needs: [android, flash, hashlink, html5, ios, linux, macos, neko, windows]
|
||||||
|
if: (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
||||||
steps:
|
steps:
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
uses: appleboy/discord-action@master
|
uses: appleboy/discord-action@master
|
||||||
@@ -534,7 +535,7 @@ jobs:
|
|||||||
notify-discord-failure:
|
notify-discord-failure:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
needs: [notify-discord]
|
needs: [notify-discord]
|
||||||
if: always()
|
if: always() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
||||||
steps:
|
steps:
|
||||||
- name: Notify Discord (failure)
|
- name: Notify Discord (failure)
|
||||||
uses: appleboy/discord-action@master
|
uses: appleboy/discord-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user