diff --git a/.github/workflows/check-branch.yml b/.github/workflows/check-branch.yml new file mode 100644 index 0000000..d49bf61 --- /dev/null +++ b/.github/workflows/check-branch.yml @@ -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 \ No newline at end of file