From d5052aedf310d15450b328c897a77bf0f8a5e907 Mon Sep 17 00:00:00 2001 From: Callum Rollo Date: Mon, 18 Nov 2024 11:15:01 +0100 Subject: [PATCH] remove unnecessary ci runs --- .github/workflows/docs.yml | 6 +----- .github/workflows/tests.yml | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index bb817ad..8968fcf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,9 +5,6 @@ on: push: branches: - main - release: - types: - - published jobs: build-docs: @@ -47,8 +44,7 @@ jobs: popd - name: Deploy - - if: success() && github.event.pull_request.merged + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4718847..6656b07 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,8 +2,7 @@ name: Tests on: pull_request: - push: - branches: [main] + jobs: run: