Skip to content

Commit

Permalink
Add PR labels conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
veeck committed Feb 8, 2023
1 parent 35c2453 commit 939f02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/enforce-pullrequest-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
changeLogPath: "CHANGELOG.md"
skipLabels: "Skip Changelog"
- name: "Enforce develop branch"
if: ${{ github.base_ref == 'master' }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release') && github.base_ref == 'master' }}
run: |
echo "This PR is based against the master branch. Please don't do this. Switch the branch to 'develop'."
exit 1
Expand Down

0 comments on commit 939f02c

Please sign in to comment.