Skip to content

Commit 327d433

Browse files
authored
[ci] Run OneLocBuild on a schedule (#180)
The xamarin-android-tools repo now builds in both the xamarin/public and devdiv/DevDiv Azure DevOps orgs, and unfortunately CI triggers only work for [one organization at a time][0]: "However, if you create pipelines for a single repository in multiple Azure DevOps organizations, only the first organization's pipelines can be automatically triggered by GitHub commits or pull requests." Since the OneLocBuild job can't run against every commit automatically, the job has been updated to run on a daily schedule so that we can still get continuous builds. [0]: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#create-pipelines-in-multiple-azure-devops-organizations-and-projects
1 parent 8ab60e4 commit 327d433

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Localize/onelocbuild.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
name: $(Build.SourceBranchName)-$(Build.SourceVersion)-$(Rev:r)
44

5-
trigger:
6-
- main
5+
trigger: none
76

87
pr: none
98

9+
schedules:
10+
- cron: "0 6 * * *"
11+
displayName: Run daily at 6:00 UTC
12+
branches:
13+
include:
14+
- main
15+
1016
jobs:
1117
- job: OneLocBuild
1218
displayName: OneLocBuild

0 commit comments

Comments
 (0)