Replace github action `always` into `!cancelled`. (#1440)

* Replace method always into cancelled.

Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8

* Remove redundant if state.
pull/1732/head
Jaehwa Noh 2 weeks ago committed by GitHub
parent 013424896c
commit b9105c61f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -137,14 +137,14 @@ jobs:
path: '**/build/outputs/apk/**/*.apk' path: '**/build/outputs/apk/**/*.apk'
- name: Upload JVM local results (XML) - name: Upload JVM local results (XML)
if: always() if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: local-test-results name: local-test-results
path: '**/build/test-results/test*UnitTest/**.xml' path: '**/build/test-results/test*UnitTest/**.xml'
- name: Upload screenshot results (PNG) - name: Upload screenshot results (PNG)
if: always() if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: screenshot-test-results name: screenshot-test-results
@ -154,7 +154,7 @@ jobs:
run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint
- name: Upload lint reports (HTML) - name: Upload lint reports (HTML)
if: always() if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: lint-reports name: lint-reports
@ -228,7 +228,7 @@ jobs:
run: ./gradlew createDemoDebugCombinedCoverageReport run: ./gradlew createDemoDebugCombinedCoverageReport
- name: Upload test reports - name: Upload test reports
if: always() if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: test-reports-${{ matrix.api-level }} name: test-reports-${{ matrix.api-level }}

Loading…
Cancel
Save