Skip to content

Commit 881dd04

Browse files
committed
Add discord notification
1 parent 7a40a71 commit 881dd04

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77
branches: [main]
88
schedule:
9-
- cron: '0 0 * * *'
9+
- cron: "0 0 * * *"
1010

1111
jobs:
1212
main:
@@ -25,7 +25,18 @@ jobs:
2525
deno-version: v2.x
2626
- uses: pnpm/action-setup@v4
2727
with:
28-
version: 10.13.1
28+
version: 10.13.1
2929
- run: corepack enable
3030
- run: bun install
3131
- run: bun run test
32+
- name: Discord notification
33+
34+
notify:
35+
needs: [main]
36+
runs-on: ubuntu-latest
37+
if: failure()
38+
steps:
39+
- uses: lacherogwu/failed-jobs-discord-notification-action@v1
40+
with:
41+
discord_webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
42+
needs_json: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)