Skip to content

Commit 8acb25e

Browse files
Merge branch 'main' into moo/MOO-2031-remove-react-native-system-navigation-bar
2 parents 937130c + ab45f8c commit 8acb25e

2 files changed

Lines changed: 47 additions & 3 deletions

File tree

.github/workflows/NativePipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ on:
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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
});

0 commit comments

Comments
 (0)