Skip to content

Commit

Permalink
Add PR labels action
Browse files Browse the repository at this point in the history
  • Loading branch information
veeck committed Feb 8, 2023
1 parent 35c2453 commit ca7a27e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/enforce-pullrequest-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca7a27e

Please sign in to comment.