File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 schedule :
55 - cron : " 0 15 * * *" # 8AM Pacific; daily
66 workflow_dispatch : # Allow manual triggering
7+ push :
8+ branches : [ add-daily-ci-workflow ] # Temporary for testing
79
810jobs :
11+ # Temporary test job to simulate failure (remove after testing)
12+ test-failure :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Simulate failure for testing
16+ run : |
17+ echo "Testing Slack notification on failure"
18+ exit 1
19+
920 # Run the existing CI workflow
1021 ci :
1122 uses : ./.github/workflows/ci.yml
23+ needs : test-failure
1224
1325 # Send Slack notification on failure
1426 notify-slack-on-failure :
15- needs : ci
16- if : failure( )
27+ needs : [test-failure, ci]
28+ if : always() && (needs.test-failure.result == 'failure' || needs.ci.result == 'failure' )
1729 runs-on : ubuntu-latest
1830 steps :
1931 - name : Send Slack notification on failure
You can’t perform that action at this time.
0 commit comments