Skip to content

Commit d4918cf

Browse files
authored
Merge pull request #2209 from fluentmigrator/copilot/update-upload-artifact-handling
Add if condition to Upload Test Result Files step to handle test failures
2 parents f5ff8a3 + 1fe1b1c commit d4918cf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/pull-requests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127

128128
- name: Combine Coverage Reports
129129
uses: danielpalme/[email protected]
130+
if: '!cancelled()'
130131
with:
131132
reports: "**/*.cobertura.xml"
132133
targetdir: "${{ github.workspace }}"
@@ -138,6 +139,7 @@ jobs:
138139

139140
- name: Upload Combined Coverage XML
140141
uses: actions/upload-artifact@v4
142+
if: '!cancelled()'
141143
with:
142144
name: coverage-${{ matrix.os }}-${{ matrix.dotnet-tfm }}
143145
path: ${{ github.workspace }}/Cobertura.xml
@@ -166,6 +168,7 @@ jobs:
166168

167169
- name: Upload Test Result Files
168170
uses: actions/upload-artifact@v4
171+
if: '!cancelled()'
169172
with:
170173
name: test-results-${{ matrix.os }}-${{ matrix.dotnet-tfm }}
171174
path: ${{ github.workspace }}/**/TestResults-${{ matrix.dotnet-tfm }}/**/*

0 commit comments

Comments
 (0)