Skip to content

Commit

Permalink
chore: update CI condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Sep 22, 2024
1 parent 6f159ec commit fc30fea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Notify on Workflow Failure and Fix

on:
push:
branches:
- main
workflow_run:
workflows: ["*"]
types:
- completed

jobs:
notify:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.head_branch == 'main' }}
runs-on: ubuntu-latest
steps:
- name: Check Previous Run Status
Expand Down

0 comments on commit fc30fea

Please sign in to comment.