Skip to content

Commit f2f9dc3

Browse files
committed
Archive logs and results in case of an error
1 parent 24bdec2 commit f2f9dc3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/code-reports.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,20 @@ jobs:
118118
working-directory: temp
119119
run: ./../scripts/copyReportsIntoResults.sh
120120

121-
# Upload the results in case they are needed for troubleshooting for a couple of days
122-
- name: Archive results
121+
# Upload logs and unfinished reports in case of an error for troubleshooting
122+
- name: Archive failed run with logs and unfinished results
123+
if: failure()
124+
uses: actions/upload-artifact@v3
125+
with:
126+
name: code-analysis-logs-java-${{ matrix.java }}-python-${{ matrix.python }}-mambaforge-${{ matrix.mambaforge }}
127+
path: |
128+
./temp/**/runtime/*
129+
./results
130+
retention-days: 5
131+
132+
# Upload successful results in case they are needed for troubleshooting
133+
- name: Archive successful results
134+
if: success()
123135
uses: actions/upload-artifact@v3
124136
with:
125137
name: code-report-results-java-${{ matrix.java }}-python-${{ matrix.python }}-mambaforge-${{ matrix.mambaforge }}

0 commit comments

Comments
 (0)