Skip to content

Commit 8360ee7

Browse files
committed
Add temporary test failure for Slack notification testing
1 parent 3814792 commit 8360ee7

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/daily-ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,28 @@ on:
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

810
jobs:
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

0 commit comments

Comments
 (0)