From 5c040e74f5655324c1ba59bbf25e4f0e77be2869 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 12 May 2024 15:01:20 +0200 Subject: [PATCH] ci: Prevent running check, docs and test suites on tags This doesn't make sense, because each tag is only pushed when those pipelines have already passed. Thus, we can save time and avoid wasting resources and don't run those again. --- .github/workflows/ci.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d69d7c558..58759c64c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,7 @@ concurrency: jobs: check: name: Check + if: startsWith(github.ref, 'refs/heads/') uses: ./.github/workflows/check.yaml secrets: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -25,6 +26,7 @@ jobs: docs: name: Docs + if: startsWith(github.ref, 'refs/heads/') uses: ./.github/workflows/docs.yaml secrets: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -32,6 +34,7 @@ jobs: test: name: Test + if: startsWith(github.ref, 'refs/heads/') uses: ./.github/workflows/test.yaml secrets: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -147,8 +150,6 @@ jobs: name: Release / Prepare if: | startsWith(github.ref, 'refs/tags/') && - needs.docs.result == 'success' && - needs.test.result == 'success' && needs.build.result == 'success' && (needs.arm.result == 'skipped' || success()) runs-on: ubuntu-22.04