Skip to content

Commit

Permalink
Use mapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Jul 6, 2024
1 parent 0fd8d99 commit 282e8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/screenshot-comparison-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 282e8f7

Please sign in to comment.