@@ -59,17 +59,19 @@ jobs:
59
59
git status
60
60
git commit -m "prune: $(COMMIT_HASH)"
61
61
condition: gt(variables['dropped.folders'], 0)
62
- displayName: "Prune notebook "
62
+ displayName: "Prune notebooks "
63
63
timeoutInMinutes: "10"
64
64
65
65
- bash : |
66
66
set -ex
67
67
git status
68
68
git push https://$(PAT_GHOST)@github.com/Lightning-AI/tutorials.git $(PUB_BRANCH)
69
- displayName: "Finish push"
69
+ displayName: "Finish and push"
70
70
71
71
- job : papermill
72
72
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'], ''))
73
75
strategy :
74
76
# generated matrix with changed notebooks, include fields: "notebook", "agent-pool" and "docker-image"
75
77
matrix : $[ dependencies.sync_pub.outputs['mtrx.dirs'] ]
97
99
COMMIT_HASH : " $(Build.SourceVersion)"
98
100
DEVICES : $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
99
101
100
- condition : ne(dependencies.sync_pub.outputs['mtrx.dirs'], '')
101
-
102
102
steps :
103
103
- bash : |
104
104
echo "##vso[task.setvariable variable=CUDA_VISIBLE_DEVICES]$(DEVICES)"
@@ -172,4 +172,4 @@ jobs:
172
172
git status
173
173
git show-ref $(PUB_BRANCH)
174
174
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