Skip to content

Bump tinacms from 2.1.1 to 2.2.0 #14

Bump tinacms from 2.1.1 to 2.2.0

Bump tinacms from 2.1.1 to 2.2.0 #14

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