From ef0cc27ca8596b59b2575801f1d0a76bb982b28c Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 14 Mar 2024 13:20:29 +0100 Subject: [PATCH] ci/gpu: do not update ref on PR --- .azure/gpu-unittests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure/gpu-unittests.yml b/.azure/gpu-unittests.yml index 3b368269331..8f1bc90759e 100644 --- a/.azure/gpu-unittests.yml +++ b/.azure/gpu-unittests.yml @@ -181,6 +181,8 @@ jobs: # copy potentially updated cache to the machine filesystem to be reused with next jobs cp -r --update tests/_cache-references /var/tmp/cached-references # set as extra step to not pollute general cache when jobs fails or crashes + # so do this update only with successful jobs on master + condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) displayName: "Update cached refs" - bash: |