Skip to content

Commit

Permalink
Merge pull request #332 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Add branch enforcement
  • Loading branch information
p-galligan authored Sep 9, 2024
2 parents 7b2f234 + 390a61f commit f1c9f9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/enforcer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Check Branch'

on:
pull_request:

jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check branch
if: github.base_ref == 'base' && github.head_ref != 'development'
run: |
echo "ERROR: You can only merge to base from the development branch."
exit 1

0 comments on commit f1c9f9d

Please sign in to comment.