Skip to content

Commit 99cfc74

Browse files
committed
Only send on main branch
1 parent 881dd04 commit 99cfc74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ jobs:
2929
- run: corepack enable
3030
- run: bun install
3131
- run: bun run test
32-
- name: Discord notification
3332

3433
notify:
35-
needs: [main]
3634
runs-on: ubuntu-latest
37-
if: failure()
35+
needs: main
36+
if: ${{ failure() && github.ref == 'refs/heads/main' }}
3837
steps:
3938
- uses: lacherogwu/failed-jobs-discord-notification-action@v1
4039
with:

0 commit comments

Comments
 (0)