Skip to content

Commit 77b6af9

Browse files
committed
GitHub: upload logs on failure
1 parent 58f27bc commit 77b6af9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,16 @@ jobs:
243243

244244
- name: run check
245245
run: make itest
246+
247+
- name: Zip log files on failure
248+
if: ${{ failure() }}
249+
timeout-minutes: 5
250+
run: 7z a logs-itest.zip itest/**/*.log
251+
252+
- name: Upload log files on failure
253+
uses: actions/upload-artifact@v3
254+
if: ${{ failure() }}
255+
with:
256+
name: logs-itest
257+
path: logs-itest.zip
258+
retention-days: 5

0 commit comments

Comments
 (0)