File tree 1 file changed +32
-3
lines changed
1 file changed +32
-3
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- " **"
9
9
paths :
10
+ - " .github/workflows/v-next-ci.yml"
10
11
- " v-next/**"
11
12
- " config-v-next/**"
12
13
workflow_dispatch :
@@ -42,16 +43,42 @@ jobs:
42
43
name : List packages
43
44
runs-on : ubuntu-latest
44
45
outputs :
45
- packages : ${{ steps.list .outputs.packages }}
46
+ packages : ${{ steps.filter .outputs.changes }}
46
47
steps :
47
48
- uses : actions/checkout@v4
48
- - id : list
49
+ - uses : actions/setup-node@v4
50
+ with :
51
+ node-version : 22
52
+ - run : yq -p yaml -o json pnpm-lock.yaml | tee pnpm-lock.json
53
+ - id : generate
54
+ env :
55
+ PACKAGE_IGNORE : |
56
+ [
57
+ ".",
58
+ "packages/",
59
+ "v-next/example-project"
60
+ ]
61
+ COMMON_FILTERS : |
62
+ [
63
+ ".github/workflows/v-next-ci.yml",
64
+ "config-v-next/**"
65
+ ]
49
66
run : |
50
- echo "packages=$(ls -d v-next/* | xargs -n 1 basename | grep -v example-project | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
67
+ echo "filters<<EOF" >> $GITHUB_OUTPUT
68
+ node scripts/generate-filters.js |
69
+ yq -Po yaml 'with_entries(.key |= sub("^v-next/", ""))' |
70
+ tee -a $GITHUB_OUTPUT
71
+ echo "EOF" >> $GITHUB_OUTPUT
72
+ - id : filter
73
+ uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
74
+ with :
75
+ filters : ${{ steps.generate.outputs.filters }}
51
76
52
77
lint :
53
78
needs : list-packages
54
79
80
+ if : needs.list-packages.outputs.packages != '[]'
81
+
55
82
strategy :
56
83
fail-fast : false
57
84
matrix :
83
110
ci :
84
111
needs : list-packages
85
112
113
+ if : needs.list-packages.outputs.packages != '[]'
114
+
86
115
strategy :
87
116
fail-fast : false
88
117
matrix :
You can’t perform that action at this time.
0 commit comments