Skip to content

Commit

Permalink
Prevent anything being scheduled on the manual pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Pfister committed Nov 12, 2021
1 parent d19ca34 commit 44e7023
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions eng/pipelines/runtime-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ trigger:
- SECURITY.md
- THIRD-PARTY-NOTICES.TXT

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

pr:
branches:
Expand Down

0 comments on commit 44e7023

Please sign in to comment.