File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,13 @@ jobs:
19
19
steps :
20
20
- name : Set changed_files
21
21
id : changed_files
22
- uses : actions/github-script@v7
23
- with :
24
- script : |
25
- const changedFiles = context.payload.pull_request.changed_files;
26
- console.log("Number of files changed:", changedFiles);
27
- return { changed_file_cnt: changedFiles } ;
22
+ shell : bash
23
+ run : |
24
+ echo "changed_file_cnt=${{ github.event.pull_request.changed_files }}" >> $GITHUB_OUTPUT
28
25
29
26
- name : Check file changes
30
27
uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
31
- if : ${{ steps.changed_files.outputs.changed_file_cnt < 500 }}
28
+ if : steps.changed_files.outputs.changed_file_cnt < 500
32
29
id : changes
33
30
with :
34
31
filters : |
91
88
uses : actions/github-script@v7
92
89
with :
93
90
script : |
94
- if (context.payload.pull_request.changed_files < 500) {
91
+ if (${{steps.changed_files.outputs.changed_file_cnt}} < 500) {
95
92
return '${{ steps.changes.outputs.changes }}';
96
93
}
97
94
// Treat everything as changed for huge PRs.
You can’t perform that action at this time.
0 commit comments