File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 uses : actions/github-script@v7
5050 with :
5151 script : |
52+
5253 const labels = context.payload.pull_request.labels.map(label => label.name);
5354 const hasQuickValidation = labels.includes('quick validation');
5455 const hasFullValidation = labels.includes('full validation');
Original file line number Diff line number Diff line change 1+ name : Nightly Build
2+ on :
3+ workflow_dispatch :
4+ schedule :
5+ - cron : " 0 0 * * *"
6+
7+ jobs :
8+ full-validation :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+
14+ - name : Run tests (random success/failure)
15+ run : |
16+ echo "Running nightly tests..."
17+ if [ $((RANDOM % 2)) -eq 0 ]; then
18+ echo "Tests passed!"
19+ exit 0
20+ else
21+ echo "Tests failed!"
22+ exit 0
23+ fi
24+
25+ - name : Mark workflow as successful
26+ if : success()
27+ run : echo "Tests passed successfully!"
You can’t perform that action at this time.
0 commit comments