Skip to content

Fixes for related objects & Directory sync #7

Fixes for related objects & Directory sync

Fixes for related objects & Directory sync #7

name: Main Branch Protection
on:
pull_request:
branches:
- master
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
run: |
if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]];
then
echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch"
exit 1
fi