From 46ea280cd363f228d1e922816e208fe1344b0439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Thu, 1 Oct 2020 19:07:10 +0200 Subject: [PATCH] Upload the iso.log even when the build fails --- .github/workflows/iso.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/iso.yml b/.github/workflows/iso.yml index 785ab71a14..b69bd4bf15 100644 --- a/.github/workflows/iso.yml +++ b/.github/workflows/iso.yml @@ -24,7 +24,7 @@ jobs: stable: true - name: Download Dependencies run: go mod download - - name: Install KVM + - name: Install KVM run: | sudo apt-get update sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils @@ -122,11 +122,14 @@ jobs: GOPOGH_RESULT="${JOB_NAME} : completed with ${FailNum} / ${TestsNum} failures in ${TIME_ELAPSED}" echo ::set-env name=GOPOGH_RESULT::${GOPOGH_RESULT} echo ::set-env name=STAT::${STAT} - - uses: actions/upload-artifact@v1 + - name: Upload report + uses: actions/upload-artifact@v1 with: name: iso_functional_test_kvm2_ubuntu path: out/report - - uses: actions/upload-artifact@v1 + - name: Upload iso.log + if: always() + uses: actions/upload-artifact@v1 with: name: iso log path: out/iso.log @@ -146,4 +149,4 @@ jobs: if [ "$numFail" -gt 0 ];then echo "*** $numFail Failed ***";exit 2;fi if [ "$numPass" -eq 0 ];then echo "*** 0 Passed! ***";exit 2;fi if [ "$numPass" -lt 32 ];then echo "*** Failed to pass at least 32 ! ***";exit 2;fi - if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi \ No newline at end of file + if [ "$numPass" -eq 0 ];then echo "*** Passed! ***";exit 0;fi