Develop --> Main #12
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: Enforce PR From Develop Branch | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Debug | |
run: echo ${{ github.head_ref }} | |
- name: Check PR source branch | |
if: github.head_ref != 'develop' | |
run: | | |
echo "Pull requests to main must come from develop branch." | |
exit 1 |