Skip to content

Commit

Permalink
Merge pull request #334 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Tweak enforcer workflow
  • Loading branch information
p-galligan authored Sep 9, 2024
2 parents f1c9f9d + d98df73 commit 1034f1f
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 1034f1f

Please sign in to comment.