mirror of
https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git
synced 2026-02-04 09:04:54 +00:00
fix(dispatch.yml): update condition for sending notification to Discord to exclude pull request events
fix(dispatch.yml): update condition for dispatching update submodule to exclude pull request events
This commit is contained in:
4
.github/workflows/dispatch.yml
vendored
4
.github/workflows/dispatch.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Send Notification to Discord
|
- name: Send Notification to Discord
|
||||||
uses: sarisia/actions-status-discord@v1
|
uses: sarisia/actions-status-discord@v1
|
||||||
if: failure()
|
if: failure() && github.event_name != 'pull_request'
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
@@ -40,6 +40,8 @@ jobs:
|
|||||||
|
|
||||||
needs: validate
|
needs: validate
|
||||||
|
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Dispatch Update Submodule to Gakumas-Localify-EN
|
- name: Dispatch Update Submodule to Gakumas-Localify-EN
|
||||||
uses: peter-evans/repository-dispatch@v3
|
uses: peter-evans/repository-dispatch@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user