Limit the branch guard to PRs into dev and same-repo v2-dev exemption

This commit is contained in:
codecalm committed 2026-09-10 01:24:21 +02:00
1 parent 395493f0c8
commit 7ebea7edb6
1 file changed
+3 -2
+3 -2
View File
@@ -4,7 +4,6 @@ on:
pull_request:
branches:
- dev
- main
permissions:
contents: read
@@ -13,7 +12,9 @@ jobs:
guard:
name: Reject branches forked from v2-dev
# v2-dev itself is the tracking PR for the whole 2.0 delta, so it is exempt.
if: github.head_ref != 'v2-dev'
if: >-
github.head_ref != 'v2-dev'
|| github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Clone repository