diff --git a/.github/workflows/screenshot-comparison-comment.yml b/.github/workflows/screenshot-comparison-comment.yml index a9b3c632f..1ca10cf67 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