Skip to content

Commit a322526

Browse files
committed
Remove test code and restore production daily CI workflow
- Remove temporary test-failure job - Remove push trigger (keep only schedule and manual) - Restore simple failure detection logic - Workflow is now ready for production use
1 parent ff8334d commit a322526

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/daily-ci.yml

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

108
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-
20-
# Run the existing CI workflow (will be skipped due to test-failure)
9+
# Run the existing CI workflow
2110
ci:
2211
uses: ./.github/workflows/ci.yml
23-
needs: test-failure
2412

2513
# Send Slack notification on failure
2614
notify-slack-on-failure:
27-
needs: [test-failure, ci]
28-
if: always() && (needs.test-failure.result == 'failure' || needs.ci.result == 'failure' || needs.ci.result == 'skipped')
15+
needs: ci
16+
if: failure()
2917
runs-on: ubuntu-latest
3018
steps:
3119
- name: Send Slack notification on failure

0 commit comments

Comments
 (0)