Test merge to master restriction - DO NOT MERGE #1
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: Restrict Merges to Master | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
restrict-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR is from develop | |
if: github.base_ref == 'master' && github.head_ref != 'develop' | |
run: | | |
echo "Pull requests to master must come from develop branch." | |
exit 1 |