Skip to content

Develop --> Main

Develop --> Main #12

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