Skip to content

👷 Add branch protection workflows and remove misconfigured cache from… #2

👷 Add branch protection workflows and remove misconfigured cache from…

👷 Add branch protection workflows and remove misconfigured cache from… #2

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