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