From 282e8f7689b56b52074ed3e0194e8dd6a3d2a617 Mon Sep 17 00:00:00 2001 From: takahirom Date: Sat, 6 Jul 2024 14:59:35 +0900 Subject: [PATCH] Use mapfile --- .github/workflows/screenshot-comparison-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/screenshot-comparison-comment.yml b/.github/workflows/screenshot-comparison-comment.yml index 9a6447fe5..b2f9076f2 100644 --- a/.github/workflows/screenshot-comparison-comment.yml +++ b/.github/workflows/screenshot-comparison-comment.yml @@ -79,7 +79,7 @@ jobs: BRANCH_NAME: companion_${{ github.event.workflow_run.head_branch }} run: | # Find all the files ending with _compare.png - files_to_add=$(find . -type f -name "*_compare.png") + mapfile -t files_to_add < <(find . -type f -name "*_compare.png") # Check for invalid file names and add only valid ones for file in $files_to_add; do