Skip to content

Commit 92a5188

Browse files
author
damccorm
committed
Yaml conditions cant be on templates I guess
1 parent 0be98d5 commit 92a5188

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
- checkout: self
5555
condition: and(succeeded(), eq(variables['WEEK'], '3'))
5656
- template: ci/courtesy-push.yml
57-
condition: and(succeeded(), eq(variables['WEEK'], '3'))
5857

5958
# All tasks on Linux
6059
- job: build_all_linux

ci/courtesy-push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ steps:
33
inputs:
44
versionSpec: '5.4.0'
55
displayName: 'Install nuget'
6+
condition: and(succeeded(), eq(variables['WEEK'], '3'))
67

78
- task: DownloadBuildArtifacts@0
89
inputs:
910
artifactName: IndividualNugetPackages
1011
downloadPath: 'IndividualNugetPackagesDownloaded'
1112
displayName: 'Download Artifact'
13+
condition: and(succeeded(), eq(variables['WEEK'], '3'))
1214

1315
- script: node azure-pipelines-tasks\ci\courtesy-push\courtesy-push.js AzureDevOps\.nuget\externals\UnifiedDependencies.xml IndividualNugetPackagesDownloaded\IndividualNugetPackages\unified_deps.xml
1416
displayName: 'Update unified deps'
@@ -17,6 +19,7 @@ steps:
1719
inputs:
1820
nuGetServiceConnections: 'Codex-Deps'
1921
displayName: 'Authenticate with nuget'
22+
condition: and(succeeded(), eq(variables['WEEK'], '3'))
2023

2124
# Everything until this point is idempotent (other than pushing tasks release branch which will get overwritten if we re-do this anyways).
2225
# Note: Pushing the tasks release branch has to happen in the first job in case commits are pushed between now and then.
@@ -26,6 +29,7 @@ steps:
2629
cd IndividualNugetPackages
2730
push.cmd
2831
displayName: 'Push Nuget packages'
32+
condition: and(succeeded(), eq(variables['WEEK'], '3'))
2933

3034
- powershell: |
3135
# Build the release branch name
@@ -52,4 +56,5 @@ steps:
5256
5357
displayName: Create PR in Azure DevOps and notify slack
5458
env:
55-
TOKEN: $(Package.Token)
59+
TOKEN: $(Package.Token)
60+
condition: and(succeeded(), eq(variables['WEEK'], '3'))

0 commit comments

Comments
 (0)