From 0842c5df94d3d535320b7034b4464b3dc9653718 Mon Sep 17 00:00:00 2001 From: Natsu Date: Mon, 1 Jul 2024 10:32:09 +0700 Subject: [PATCH] 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 --- .github/workflows/dispatch.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 701db131..60df551a 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -28,7 +28,7 @@ jobs: - name: Send Notification to Discord uses: sarisia/actions-status-discord@v1 - if: failure() + if: failure() && github.event_name != 'pull_request' with: webhook: ${{ secrets.DISCORD_WEBHOOK }} status: ${{ job.status }} @@ -40,6 +40,8 @@ jobs: needs: validate + if: github.event_name != 'pull_request' + steps: - name: Dispatch Update Submodule to Gakumas-Localify-EN uses: peter-evans/repository-dispatch@v3