From 841ad50b7811a30b0e9179ed3664ce8b452d124d Mon Sep 17 00:00:00 2001 From: Tibor Schmidt Date: Tue, 23 Jul 2024 02:36:40 +0200 Subject: [PATCH] ci: don't run docgen after release mr --- .github/workflows/docgen.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index 968b325..6f397c1 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -1,12 +1,17 @@ name: docgen on: push: + branches: + - main + - docs pull_request: - workflow_dispatch: + branches: + - main + - docs jobs: docs: runs-on: ubuntu-latest - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs' }} + if: ${{ ! contains(github.event.pull_request.head.ref, 'release-please') }} steps: - uses: actions/checkout@v3 with: