From b9105c61f7aa28cdf3ec189634a5b1639c84bacd Mon Sep 17 00:00:00 2001 From: Jaehwa Noh Date: Wed, 11 Dec 2024 23:33:34 +0900 Subject: [PATCH] Replace github action `always` into `!cancelled`. (#1440) * Replace method always into cancelled. Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8 * Remove redundant if state. --- .github/workflows/Build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index ea3ccb653..9a7150fe2 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -137,14 +137,14 @@ jobs: path: '**/build/outputs/apk/**/*.apk' - name: Upload JVM local results (XML) - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: name: local-test-results path: '**/build/test-results/test*UnitTest/**.xml' - name: Upload screenshot results (PNG) - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: name: screenshot-test-results @@ -154,7 +154,7 @@ jobs: run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint - name: Upload lint reports (HTML) - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: name: lint-reports @@ -228,7 +228,7 @@ jobs: run: ./gradlew createDemoDebugCombinedCoverageReport - name: Upload test reports - if: always() + if: ${{ !cancelled() }} uses: actions/upload-artifact@v4 with: name: test-reports-${{ matrix.api-level }}