Skip to content

Commit 44e7023

Browse files
author
Steve Pfister
committed
Prevent anything being scheduled on the manual pipelines
1 parent d19ca34 commit 44e7023

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

eng/pipelines/runtime-staging.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ trigger:
2222
- SECURITY.md
2323
- THIRD-PARTY-NOTICES.TXT
2424

25-
schedules:
26-
- cron: "0 7,19 * * *" # run at 7:00 and 19:00 (UTC) which is 23:00 and 11:00 (PST).
27-
displayName: Runtime-staging default schedule
28-
branches:
29-
include:
30-
- main
31-
always: false # run only if there were changes since the last successful scheduled run.
25+
- ${{ if not(eq(variables['Build.DefinitionName'], 'runtime-staging-manual')) }}:
26+
schedules:
27+
- cron: "0 7,19 * * *" # run at 7:00 and 19:00 (UTC) which is 23:00 and 11:00 (PST).
28+
displayName: Runtime-staging default schedule
29+
branches:
30+
include:
31+
- main
32+
always: false # run only if there were changes since the last successful scheduled run.
3233

3334
pr:
3435
branches:

0 commit comments

Comments
 (0)