Browse Source

Fix printing build scan url when tests failed (#11119)

Lauri Tulmin 11 months ago
parent
commit
1a449b860e

+ 1 - 1
.github/workflows/build-common.yml

@@ -268,7 +268,7 @@ jobs:
           gradle-home-cache-excludes: caches/build-cache-1
 
       - name: Build scan
-        if: ${{ hashFiles('build-scan.txt') != '' }}
+        if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
         run: cat build-scan.txt
 
       - name: Upload deadlock detector artifacts if any

+ 1 - 1
.github/workflows/reusable-test-indy.yml

@@ -87,5 +87,5 @@ jobs:
           gradle-home-cache-excludes: caches/build-cache-1
 
       - name: Build scan
-        if: ${{ hashFiles('build-scan.txt') != '' }}
+        if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
         run: cat build-scan.txt

+ 1 - 1
.github/workflows/reusable-test-latest-deps.yml

@@ -84,7 +84,7 @@ jobs:
           gradle-home-cache-excludes: caches/build-cache-1
 
       - name: Build scan
-        if: ${{ hashFiles('build-scan.txt') != '' }}
+        if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
         run: cat build-scan.txt
 
       - name: Upload deadlock detector artifacts if any