File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 - video-player-native
6767 - web-view-native
6868
69- # Run at 0:00 UTC (2:00 AM CET time during summer, 1:00 AM during winter)
70- schedule :
71- - cron : ' 0 0 * * *'
7269 # Trigger on PR
7370 pull_request :
7471
Original file line number Diff line number Diff line change 1+ name : Nightly Dispatcher
2+
3+ on :
4+ schedule :
5+ # Run main branch at midnight (0:00 UTC)
6+ - cron : ' 0 0 * * *'
7+ # Run version/mx/10 branch at 4:00 AM UTC
8+ - cron : ' 0 4 * * *'
9+
10+ jobs :
11+ dispatch-main :
12+ if : github.event.schedule == '0 0 * * *'
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : " Trigger Native Pipeline on main"
16+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
17+ with :
18+ script : |
19+ await github.rest.actions.createWorkflowDispatch({
20+ owner: context.repo.owner,
21+ repo: context.repo.repo,
22+ workflow_id: 'NativePipeline.yml',
23+ ref: 'main',
24+ inputs: {
25+ run_name: 'Nightly Main Branch Pipeline',
26+ workspace: '*-native'
27+ }
28+ });
29+
30+ dispatch-version-mx-10 :
31+ if : github.event.schedule == '0 4 * * *'
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : " Trigger Native Pipeline on version/mx/10"
35+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
36+ with :
37+ script : |
38+ await github.rest.actions.createWorkflowDispatch({
39+ owner: context.repo.owner,
40+ repo: context.repo.repo,
41+ workflow_id: 'NativePipeline.yml',
42+ ref: 'version/mx/10',
43+ inputs: {
44+ run_name: 'Nightly version/mx/10 Branch Pipeline',
45+ workspace: '*-native'
46+ }
47+ });
You can’t perform that action at this time.
0 commit comments