Fix job changed-files in ci.yml

When there are multiple crates, it would be in multiple lines, breaking github output
This commit is contained in:
Jiahao XU 2024-06-12 19:33:23 +10:00 committed by GitHub
parent 2feac66e14
commit ac7fba5970
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ jobs:
set -euxo pipefail
crates_changed="$(echo "$ALL_CHANGED_FILES" | grep crates | cut -d / -f 2)"
has_detect_target_changed="$(echo "$crates_changed" | grep -q detect-targets && echo true || echo false)"
echo "crates_changed=$crates_changed" | tee -a "$GITHUB_OUTPUT"
echo "crates_changed=${crates_changed//$'\n'/ }" | tee -a "$GITHUB_OUTPUT"
echo "has_detect_target_changed=$has_detect_target_changed" | tee -a "$GITHUB_OUTPUT"
unit-tests: