Skip to content

Commit b9105c6

Browse files
authored
Replace github action always into !cancelled. (#1440)
* Replace method always into cancelled. Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8 * Remove redundant if state.
1 parent 0134248 commit b9105c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/Build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ jobs:
137137
path: '**/build/outputs/apk/**/*.apk'
138138

139139
- name: Upload JVM local results (XML)
140-
if: always()
140+
if: ${{ !cancelled() }}
141141
uses: actions/upload-artifact@v4
142142
with:
143143
name: local-test-results
144144
path: '**/build/test-results/test*UnitTest/**.xml'
145145

146146
- name: Upload screenshot results (PNG)
147-
if: always()
147+
if: ${{ !cancelled() }}
148148
uses: actions/upload-artifact@v4
149149
with:
150150
name: screenshot-test-results
@@ -154,7 +154,7 @@ jobs:
154154
run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint
155155

156156
- name: Upload lint reports (HTML)
157-
if: always()
157+
if: ${{ !cancelled() }}
158158
uses: actions/upload-artifact@v4
159159
with:
160160
name: lint-reports
@@ -228,7 +228,7 @@ jobs:
228228
run: ./gradlew createDemoDebugCombinedCoverageReport
229229

230230
- name: Upload test reports
231-
if: always()
231+
if: ${{ !cancelled() }}
232232
uses: actions/upload-artifact@v4
233233
with:
234234
name: test-reports-${{ matrix.api-level }}

0 commit comments

Comments
 (0)