From ca7a27e2d7321abd9cbcadd4448f6d1e6fa84135 Mon Sep 17 00:00:00 2001 From: veeck Date: Wed, 8 Feb 2023 21:56:02 +0100 Subject: [PATCH] Add PR labels action --- .github/workflows/enforce-pullrequest-rules.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enforce-pullrequest-rules.yaml b/.github/workflows/enforce-pullrequest-rules.yaml index e59819891a..aea5e78cf7 100644 --- a/.github/workflows/enforce-pullrequest-rules.yaml +++ b/.github/workflows/enforce-pullrequest-rules.yaml @@ -18,8 +18,11 @@ jobs: with: changeLogPath: "CHANGELOG.md" skipLabels: "Skip Changelog" + - name: "Get PR labels" + id: pr-labels + uses: joerick/pr-labels-action@v1.0.7 - name: "Enforce develop branch" - if: ${{ github.base_ref == 'master' }} + if: ${{ github.base_ref == 'master' && !contains(steps.pr-labels.outputs.labels, ' release ') }} run: | echo "This PR is based against the master branch. Please don't do this. Switch the branch to 'develop'." exit 1