mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
ci: branch rules (#4525)
This commit is contained in:
6
.github/workflows/branch-rules.yml
vendored
6
.github/workflows/branch-rules.yml
vendored
@@ -29,12 +29,6 @@ jobs:
|
||||
docs:
|
||||
- 'docs/**'
|
||||
|
||||
- name: Enforce docs-only PRs target main
|
||||
if: steps.filter.outputs.docs == 'true' && steps.filter.outputs.src == 'false' && github.base_ref != 'main'
|
||||
run: |
|
||||
echo "Error: Pull requests that only change documentation must target the 'main' branch."
|
||||
exit 1
|
||||
|
||||
- name: Enforce code change PRs target canary or staging
|
||||
if: steps.filter.outputs.src == 'true' && github.base_ref != 'canary' && !startsWith(github.base_ref, 'v')
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user