From adc10f23e76cfcd935f3a69c0d77e484522c013f Mon Sep 17 00:00:00 2001 From: Johanna England Date: Mon, 16 Dec 2024 14:41:42 +0100 Subject: [PATCH] Skip towncrier check on 'nonews' label --- .github/workflows/towncrier.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/towncrier.yml b/.github/workflows/towncrier.yml index a7ffcb553d..89cf0eb681 100644 --- a/.github/workflows/towncrier.yml +++ b/.github/workflows/towncrier.yml @@ -1,10 +1,14 @@ name: Check for changelog file -on: [pull_request] +on: + pull_request: + # labeled/unlabeled = label is added/removed + # synchronize = PR's head branch was updated + types: [labeled, unlabeled, opened, reopened, synchronize] jobs: towncrier: - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'nonews') }} runs-on: ubuntu-latest name: Towncrier check steps: