Skip to content

Develop

Develop #31

name: Enforce source branch
on:
pull_request:
branches: [main]
jobs:
check-source:
runs-on: ubuntu-latest
steps:
- name: Check source branch
if: github.head_ref != 'develop'
env:
HEAD_REF: ${{ github.head_ref }}
run: |
echo "::error::PRs to main must come from the develop branch, not '${HEAD_REF}'"
exit 1