Skip to content

Develop

Develop #9

name: Branch Protection
on:
pull_request:
branches:
- master
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
run: |
if [[ ${GITHUB_HEAD_REF} != develop ]]
then
echo "Error: Pull request must come from 'develop' branch"
exit 1
fi