Skip to content

Commit

Permalink
Create enforcer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nnh53 authored Nov 23, 2023
1 parent d8acb4c commit 43da24a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/enforcer.yml
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 == 'main' && github.head_ref != 'dev'
run: |
echo "ERROR: You can only merge to main from dev."
exit 1

0 comments on commit 43da24a

Please sign in to comment.