File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 required : false
1212 type : string
1313 default : full
14- schedule :
15- - cron : " 0 3 * * *" # Nightly full E2E at 03:00 UTC
1614 workflow_dispatch :
1715
1816permissions :
@@ -127,24 +125,3 @@ jobs:
127125 exit 1
128126 fi
129127
130- nightly-alert :
131- name : Nightly E2E Alert
132- runs-on : ubuntu-latest
133- if : always() && github.event_name == 'schedule'
134- permissions :
135- actions : read
136- contents : read
137- issues : write
138- needs : [e2e]
139- steps :
140- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
141- with :
142- persist-credentials : false
143- - name : Report nightly E2E result
144- env :
145- GH_TOKEN : ${{ github.token }}
146- REPO : ${{ github.repository }}
147- ALERT_WORKFLOW_NAME : Nightly E2E
148- ALERT_ISSUE_TITLE : Nightly E2E failed
149- ALERT_RESULT : ${{ needs.e2e.result }}
150- run : .github/scripts/nightly-alert-issue.sh
Original file line number Diff line number Diff line change 1+ name : Nightly E2E
2+
3+ # Scheduled wrapper around the reusable E2E workflow. Keep alerting here rather
4+ # than inside e2e.yml so callers like Run Tests can reference e2e.yml without
5+ # inheriting schedule-only issue-writing permissions.
6+ on :
7+ schedule :
8+ - cron : " 0 3 * * *" # Nightly full E2E at 03:00 UTC
9+ workflow_dispatch :
10+
11+ permissions :
12+ contents : read
13+
14+ concurrency :
15+ group : nightly-e2e-${{ github.ref }}
16+ cancel-in-progress : false
17+
18+ jobs :
19+ e2e :
20+ name : Full E2E
21+ uses : ./.github/workflows/e2e.yml
22+ with :
23+ ref : ${{ github.sha }}
24+ mode : full
25+
26+ nightly-alert :
27+ name : Nightly E2E Alert
28+ runs-on : ubuntu-latest
29+ if : always() && github.event_name == 'schedule'
30+ permissions :
31+ actions : read
32+ contents : read
33+ issues : write
34+ needs : [e2e]
35+ steps :
36+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
37+ with :
38+ persist-credentials : false
39+ - name : Report nightly E2E result
40+ env :
41+ GH_TOKEN : ${{ github.token }}
42+ REPO : ${{ github.repository }}
43+ ALERT_WORKFLOW_NAME : Nightly E2E
44+ ALERT_ISSUE_TITLE : Nightly E2E failed
45+ ALERT_RESULT : ${{ needs.e2e.result }}
46+ run : .github/scripts/nightly-alert-issue.sh
You can’t perform that action at this time.
0 commit comments