From 26bb705c7fba29438f212c274dd9402526edf94e Mon Sep 17 00:00:00 2001 From: takahirom Date: Sat, 6 Jul 2024 15:16:43 +0900 Subject: [PATCH] Fix mapfile --- .github/workflows/screenshot-comparison-comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/screenshot-comparison-comment.yml b/.github/workflows/screenshot-comparison-comment.yml index b2f9076f2..0c7cfacfe 100644 --- a/.github/workflows/screenshot-comparison-comment.yml +++ b/.github/workflows/screenshot-comparison-comment.yml @@ -61,7 +61,7 @@ jobs: shell: bash run: | # Find all the files ending with _compare.png - mapfile -t files_to_add < <(find . -type f -name "*_compare.png") + mapfile -d '' -t files_to_add < <(find . -type f -name "*_compare.png" -print0) # Check for invalid file names and add only valid ones exist_valid_files="false" @@ -79,7 +79,7 @@ jobs: BRANCH_NAME: companion_${{ github.event.workflow_run.head_branch }} run: | # Find all the files ending with _compare.png - mapfile -t files_to_add < <(find . -type f -name "*_compare.png") + mapfile -d '' -t files_to_add < <(find . -type f -name "*_compare.png" -print0) # Check for invalid file names and add only valid ones for file in $files_to_add; do