From 3286858d17d179e73046bb0ff28f3758349f868d Mon Sep 17 00:00:00 2001 From: Daichi Sakaue Date: Mon, 16 Dec 2024 16:22:36 +0900 Subject: [PATCH] Fix matrix generator to handle deleted files Signed-off-by: Daichi Sakaue --- generate_matrix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate_matrix b/generate_matrix index a5f50ebf9..f096a04e1 100755 --- a/generate_matrix +++ b/generate_matrix @@ -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