Skip to content

Commit

Permalink
Merge pull request #333 from RockefellerArchiveCenter/enforcer-tweak
Browse files Browse the repository at this point in the history
tweak enforcer
  • Loading branch information
p-galligan authored Sep 9, 2024
2 parents 390a61f + 5e0b18f commit d98df73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/enforcer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: 'Check Branch'

on:
pull_request:
branches:
- base

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

0 comments on commit d98df73

Please sign in to comment.