-
-
Notifications
You must be signed in to change notification settings - Fork 242
40 lines (39 loc) · 1.17 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: AstroNvim
on:
push:
branches: [main]
pull_request:
pull_request_target:
types: [opened, edited, synchronize]
jobs:
CI:
uses: AstroNvim/.github/.github/workflows/plugin_ci.yml@main
if: ${{ github.event_name != 'pull_request_target' }}
secrets: inherit
with:
plugin_name: ${{ github.event.repository.name }}
is_production: ${{ github.event_name == 'push' }}
docs: false
spellcheck: false
commit_msg: false
scopes:
name: Calculate scopes
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' }}
outputs:
scopes: ${{ steps.get-scopes.outputs.scopes }}
steps:
- uses: actions/checkout@v3
- id: get-scopes
run: |
echo "scopes<<EOF" >> $GITHUB_OUTPUT
find lua/astrocommunity -mindepth 1 -maxdepth 2 -type d -exec basename {} \; >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
PR:
uses: AstroNvim/.github/.github/workflows/validate_pr.yml@main
needs: scopes
if: ${{ github.event_name == 'pull_request_target' }}
secrets: inherit
with:
conventional_title: true
scopes: ${{ needs.scopes.outputs.scopes }}