Improve performance when logging is disabled #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fail PR to master | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
fail_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fail PR to master | |
run: | | |
if [[ "${{ github.event.pull_request.title }}" == "chore(dev): release"* ]]; then | |
echo "PR title starts with 'chore(dev): release', allowing PR" | |
else | |
echo "Pull requests to the master branch are not allowed, target dev branch" | |
exit 1 | |
fi |