From 17857c5fe455445d6cfe232ff9856039042d1503 Mon Sep 17 00:00:00 2001 From: Natsu Date: Thu, 20 Jun 2024 14:56:44 +0700 Subject: [PATCH] chore: Add Discord notification for validation status --- .github/workflows/dispatch.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 699a837a..701db131 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -26,6 +26,14 @@ jobs: id: resource-validate run: python ./scripts/resource_validator.py ./local-files/resource + - name: Send Notification to Discord + uses: sarisia/actions-status-discord@v1 + if: failure() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + title: "Validate" + dispatch: runs-on: ubuntu-latest