You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-pipelines.yml
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,29 @@ resources:
20
20
- repo: self
21
21
22
22
stages:
23
+
24
+
- stage: OffloadGate
25
+
dependsOn: []
26
+
jobs:
27
+
- job: gate
28
+
pool:
29
+
vmImage: ubuntu-latest
30
+
steps:
31
+
- checkout: none
32
+
- bash: |
33
+
run=true
34
+
if [ "$(Build.Reason)" = "PullRequest" ]; then
35
+
run=false
36
+
labels=$(curl -sf "https://api.github.com/repos/$(Build.Repository.Name)/issues/$(System.PullRequest.PullRequestNumber)/labels" | python3 -c "import sys, json; print(' '.join(l['name'] for l in json.load(sys.stdin)))")
37
+
for l in $labels; do [ "$l" = "run-offload-tests" ] && run=true; done
labels=$(curl -sf "https://api.github.com/repos/$(Build.Repository.Name)/issues/$(System.PullRequest.PullRequestNumber)/labels" | python3 -c "import sys, json; print(' '.join(l['name'] for l in json.load(sys.stdin)))")
227
-
for l in $labels; do [ "$l" = "run-offload-tests" ] && run=true; done
0 commit comments