File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,16 @@ jobs:
161
161
uses : actions/checkout@v4
162
162
163
163
- name : Get changed files
164
- uses : DevExpress/github-actions/get-changed-files@v1
164
+ id : changed-files
165
+ uses : IlyaKhD/github-actions/get-changed-files@khd/update-get-changed-files
165
166
if : github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'force all tests')
166
167
with :
167
168
gh-token : ${{ secrets.GITHUB_TOKEN }}
168
169
paths : ' apps/demos/Demos/**/*'
169
- output : apps/demos/changed-files.json
170
+
171
+ - name : Save to file
172
+ run : |
173
+ jq -r '[.files[] | {filename: .path}]' <<< '${{ steps.changed-files.outputs.json }}' > apps/demos/changed-files.json
170
174
171
175
- name : Upload artifacts
172
176
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -26,16 +26,14 @@ jobs:
26
26
27
27
- name : Get changed files
28
28
id : changed-files
29
- uses : DevExpress /github-actions/get-changed-files@v1
29
+ uses : IlyaKhD /github-actions/get-changed-files@khd/update-get-changed-files
30
30
with :
31
31
gh-token : ${{ secrets.GITHUB_TOKEN }}
32
- paths : ' **/*'
33
- output : changed-files.json
34
32
35
33
- name : Check all changed files
36
34
run : |
37
35
RESULT=''
38
- for file in $(jq -r '.[].filename' changed-files.json) ; do
36
+ for file in ${{ steps. changed-files.outputs.files }} ; do
39
37
if (( ${#file} > $MAX_LENGTH )); then RESULT+="$file\n"; fi;
40
38
done
41
39
if (( ${#RESULT} )); then printf "The following filenames are longer than $MAX_LENGTH characters:\n${RESULT}" && exit 1; fi;
You can’t perform that action at this time.
0 commit comments