Skip to content

Commit 112117f

Browse files
committed
Use jq
1 parent fb0be96 commit 112117f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: .github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ jobs:
3636
run: |
3737
npm install -g @umbrelladocs/linkspector
3838
echo "linkspector version: $(linkspector --version)"
39-
echo "files:" > .linkspector.yml
40-
echo "${{ steps.changed-files.outputs.changed_files }}" | tr ' ' '\n' | while read -r file; do
41-
echo " - $file" >> .linkspector.yml
42-
done
39+
jq '{"files": $ARGS.positional}' --null-input --args ${{ steps.changed-files.outputs.changed_files }} > .linkspector.yml
4340
linkspector check --config .linkspector.yml
4441
- name: Install Zola
4542
run: |

0 commit comments

Comments
 (0)