Skip to content

Commit dfd21e5

Browse files
committed
Try new version of the action
1 parent e89c39c commit dfd21e5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/demos_visual_tests_frameworks.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,16 @@ jobs:
161161
uses: actions/checkout@v4
162162

163163
- 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
165166
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'force all tests')
166167
with:
167168
gh-token: ${{ secrets.GITHUB_TOKEN }}
168169
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
170174
171175
- name: Upload artifacts
172176
uses: actions/upload-artifact@v4

.github/workflows/paths.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@ jobs:
2626

2727
- name: Get changed files
2828
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
3030
with:
3131
gh-token: ${{ secrets.GITHUB_TOKEN }}
32-
paths: '**/*'
33-
output: changed-files.json
3432

3533
- name: Check all changed files
3634
run: |
3735
RESULT=''
38-
for file in $(jq -r '.[].filename' changed-files.json); do
36+
for file in ${{ steps.changed-files.outputs.files }}; do
3937
if (( ${#file} > $MAX_LENGTH )); then RESULT+="$file\n"; fi;
4038
done
4139
if (( ${#RESULT} )); then printf "The following filenames are longer than $MAX_LENGTH characters:\n${RESULT}" && exit 1; fi;

0 commit comments

Comments
 (0)