Skip to content

Commit

Permalink
chore: prevent PRs to main
Browse files Browse the repository at this point in the history
  • Loading branch information
bayological committed Sep 17, 2024
1 parent f3ebf0a commit cbe40af
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Prevent PR to Main

on:
pull_request:
branches:
- main

jobs:
check-target-branch:
runs-on: ubuntu-latest
steps:
- name: Fail if PR targets the main branch
run: |
echo "PRs should not be merged into the main branch directly."
exit 1

0 comments on commit cbe40af

Please sign in to comment.