File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,13 @@ jobs:
1919 steps :
2020 - name : Set changed_files
2121 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
2825
2926 - name : Check file changes
3027 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
3229 id : changes
3330 with :
3431 filters : |
9188 uses : actions/github-script@v7
9289 with :
9390 script : |
94- if (context.payload.pull_request.changed_files < 500) {
91+ if (${{steps.changed_files.outputs.changed_file_cnt}} < 500) {
9592 return '${{ steps.changes.outputs.changes }}';
9693 }
9794 // Treat everything as changed for huge PRs.
You can’t perform that action at this time.
0 commit comments