From c660a578bf656b7fd3e762a889ce5b96c79bb00e Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 5 Jul 2020 13:55:53 +0300 Subject: [PATCH] ci/linux: create dist artifact only if dist archive was built Fixes: 512c88ce ("ci/linux: add dist check") (cherry picked from commit e9a6b127696f75097dea01d197735596335865bb) --- .github/workflows/linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e4af84e2..703fb962 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -119,7 +119,7 @@ jobs: name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-build path: build - uses: actions/upload-artifact@v1 - if: failure() + if: failure() && matrix.EVENT_MATRIX == 'DIST' with: name: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-dist path: dist @@ -204,7 +204,7 @@ jobs: name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-build path: build - uses: actions/upload-artifact@v1 - if: failure() + if: failure() && matrix.EVENT_MATRIX == 'DIST' with: name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-dist path: dist