File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 17
17
outputs :
18
18
filters : ${{ steps.result.outputs.result }}
19
19
steps :
20
+ - name : Set changed_files
21
+ id : changed_files
22
+ uses : actions/github-script@v7
23
+ with :
24
+ script : |
25
+ console.log("Number of files changed:");
26
+ console.log(context.payload.pull_request.changed_files);
27
+ return context.payload.pull_request.changed_files ;
28
+
20
29
- name : Check file changes
21
30
uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
31
+ if : ${{ steps.changed_files.outputs.changed_files }} < 500
22
32
id : changes
23
33
with :
24
34
filters : |
81
91
uses : actions/github-script@v7
82
92
with :
83
93
script : |
84
- console.log("Number of files changed:");
85
- console.log(context.payload.pull_request.changed_files);
86
94
if (context.payload.pull_request.changed_files < 500) {
87
95
return '${{ steps.changes.outputs.changes }}';
88
96
}
You can’t perform that action at this time.
0 commit comments