mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 16:46:09 +08:00
ci: fix jq parse error in changed files list step
Pass the changed files JSON through an environment variable instead of direct interpolation to avoid shell quoting issues. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -224,9 +224,11 @@ jobs:
|
|||||||
docs/en/**/*.md
|
docs/en/**/*.md
|
||||||
|
|
||||||
- name: Save changed files list
|
- name: Save changed files list
|
||||||
|
env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p logs
|
mkdir -p logs
|
||||||
echo '${{ steps.changed-files.outputs.all_changed_files }}' | jq '.' > ./logs/prFiles.json
|
echo "$ALL_CHANGED_FILES" | jq '.' > ./logs/prFiles.json
|
||||||
echo "Changed files:"
|
echo "Changed files:"
|
||||||
cat ./logs/prFiles.json
|
cat ./logs/prFiles.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user