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: Pull requests can't target master branch | |
"on": | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
branches: | |
- master | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Warning marge into master | |
run: | | |
echo -e "::warning::This pull request directly merge into \"master\" branch, normally development happens on \"dev\" branch." | |
exit 1 |