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