From 6b48e0cc475385b6b9b4912261dfc41a33ea6604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9cate?= Date: Sun, 1 Sep 2024 18:42:48 +0200 Subject: [PATCH] Fix release action conditions (#23) --- .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 3 ++- .github/workflows/test-reports.yml | 0 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 .github/workflows/test-reports.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 823bf14..9b1d0fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,6 @@ on: branches: ['main'] jobs: - generate-matrix: name: 'Generate matrix from cabal' outputs: @@ -218,7 +217,9 @@ jobs: path: ${{ env.PRINTAPI_EXEC_TAR }} collect-test-results: + name: Collect test results runs-on: ubuntu-latest + needs: ['builds', 'build-alpine'] steps: - name: Install junitparser run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 797b317..c2ddd33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,8 +7,8 @@ on: - "v*" jobs: - generate-matrix: + if: startsWith(github.ref, 'refs/tags/v') name: 'Generate matrix from cabal' outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} @@ -24,6 +24,7 @@ jobs: version: 0.1.7.1 generate-alpine-matrix: + if: startsWith(github.ref, 'refs/tags/v') name: 'Generate Alpine matrix from cabal' outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} diff --git a/.github/workflows/test-reports.yml b/.github/workflows/test-reports.yml deleted file mode 100644 index e69de29..0000000