Skip to content

Commit 16a14c9

Browse files
authored
[CI] Don't try to run detect changes for large PR (#17728)
https://github.com/intel/llvm/actions/runs/14151976801/job/39646329170?pr=17710 The step will crash if the change files are huge.
1 parent fad7dbb commit 16a14c9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/sycl-detect-changes.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,18 @@ jobs:
1717
outputs:
1818
filters: ${{ steps.result.outputs.result }}
1919
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+
2029
- name: Check file changes
2130
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
31+
if: ${{ steps.changed_files.outputs.changed_files }} < 500
2232
id: changes
2333
with:
2434
filters: |
@@ -81,8 +91,6 @@ jobs:
8191
uses: actions/github-script@v7
8292
with:
8393
script: |
84-
console.log("Number of files changed:");
85-
console.log(context.payload.pull_request.changed_files);
8694
if (context.payload.pull_request.changed_files < 500) {
8795
return '${{ steps.changes.outputs.changes }}';
8896
}

0 commit comments

Comments
 (0)