Skip to content

Commit

Permalink
Run nightly build only when triggered by scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
habbes committed Sep 11, 2020
1 parent f779668 commit 6db758e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ steps:

# pack nightly NuGet package
- task: NuGetCommand@2
# condition: and(always(), eq(variables['Build.Reason'], 'Schedule')) # only run for scheduled (nightly) builds
condition: and(always(), eq(variables['Build.Reason'], 'Schedule')) # only run for scheduled (nightly) builds
displayName: 'NuGet - pack Microsoft.AspNetCore.OData.Authorization.Nightly.nuspec '
inputs:
command: custom
Expand Down Expand Up @@ -278,7 +278,7 @@ steps:

# Push the odata model builder nightly to MyGet
- task: NuGetCommand@2
# condition: and(always(), eq(variables['Build.Reason'], 'Schedule')) # only run for scheduled (nightly) builds
condition: and(always(), eq(variables['Build.Reason'], 'Schedule')) # only run for scheduled (nightly) builds
displayName: 'NuGet push - Nightly packages to MyGet'
inputs:
command: push
Expand Down

0 comments on commit 6db758e

Please sign in to comment.