Skip to content

Commit 3ba42ec

Browse files
committed
ci: move PR validation to separate pipeline
1 parent af5b743 commit 3ba42ec

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
name: AstroNvim
22
on:
33
push:
4-
branches: ["main"]
4+
branches: [main]
55
pull_request:
6+
pull_request_target:
7+
types: [opened, edited, synchronize]
68

79
jobs:
810
CI:
911
uses: AstroNvim/.github/.github/workflows/plugin_ci.yml@main
12+
if: ${{ github.event_name != 'pull_request_target' }}
1013
secrets: inherit
1114
with:
1215
plugin_name: ${{ github.event.repository.name }}
1316
is_production: ${{ github.event_name == 'push' }}
1417
commit_msg: false
15-
pr_title: true
18+
PR:
19+
uses: AstroNvim/.github/.github/workflows/validate_pr.yml@main
20+
if: ${{ github.event_name == 'pull_request_target' }}
21+
secrets: inherit
22+
with:
23+
conventional_title: true

0 commit comments

Comments
 (0)