From c4ac96c6537b8daf007319e8e3951ad5fe777367 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Fri, 2 Feb 2024 16:25:25 -0300 Subject: [PATCH] Upload artifacts after successfully rerunning tests --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94b775180..4959541f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,12 +42,14 @@ jobs: make -k check - name: Rerun failed tests under gdb and get backtraces + id: rerun_tests if: always() && steps.check.outcome == 'failure' run: | cat ./bt_edit.log ./test-suite.log scripts/gdbtests.sh ./test-suite.log - uses: actions/upload-artifact@v4 + if: always() && steps.check.outcome == 'failure' && steps.rerun_tests.outcome == 'success' with: path: | test-suite.log