@@ -59,17 +59,19 @@ jobs:
5959 git status
6060 git commit -m "prune: $(COMMIT_HASH)"
6161 condition: gt(variables['dropped.folders'], 0)
62- displayName: "Prune notebook "
62+ displayName: "Prune notebooks "
6363 timeoutInMinutes: "10"
6464
6565 - bash : |
6666 set -ex
6767 git status
6868 git push https://$(PAT_GHOST)@github.com/Lightning-AI/tutorials.git $(PUB_BRANCH)
69- displayName: "Finish push"
69+ displayName: "Finish and push"
7070
7171 - job : papermill
7272 dependsOn : sync_pub
73+ # run if the initial job succeeded and the strategy matrix is not empty
74+ condition : and(succeeded(), ne(dependencies.sync_pub.outputs['mtrx.dirs'], ''))
7375 strategy :
7476 # generated matrix with changed notebooks, include fields: "notebook", "agent-pool" and "docker-image"
7577 matrix : $[ dependencies.sync_pub.outputs['mtrx.dirs'] ]
9799 COMMIT_HASH : " $(Build.SourceVersion)"
98100 DEVICES : $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
99101
100- condition : ne(dependencies.sync_pub.outputs['mtrx.dirs'], '')
101-
102102 steps :
103103 - bash : |
104104 echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
@@ -172,4 +172,4 @@ jobs:
172172 git status
173173 git show-ref $(PUB_BRANCH)
174174 git push https://$(PAT_GHOST)@github.com/Lightning-AI/tutorials.git $(PUB_BRANCH)
175- displayName: "Finish push"
175+ displayName: "Finish and push"
0 commit comments