mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Limit the branch guard to PRs into dev and same-repo v2-dev exemption
This commit is contained in:
1 parent
395493f0c8
commit
7ebea7edb6
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user