Skip to content

Commit

Permalink
Merge pull request #1492 from cybozu/fix-matrix-generator
Browse files Browse the repository at this point in the history
Fix matrix generator to handle deleted files
  • Loading branch information
yokaze authored Dec 18, 2024
2 parents 2b3ec7b + 3286858 commit eeaf60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_matrix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

# https://github.com/tj-actions/changed-files?tab=readme-ov-file#outputs-
cat .github/outputs/all_changed_and_modified_files.txt | tr ',' '\n' | xargs realpath > .github/outputs/__diff.txt
cat .github/outputs/all_changed_and_modified_files.txt | tr ',' '\n' | xargs -n1 printf "$(pwd)/%s\n" | sort > .github/outputs/__diff.txt

echo "Changed Files:"
cat .github/outputs/__diff.txt | jq -n --raw-input '[inputs]' | yq -P
Expand Down

0 comments on commit eeaf60d

Please sign in to comment.