Skip to content

Commit 79824be

Browse files
authored
Update batch spec looping example
1 parent f5cf41b commit 79824be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/batch-changes/batch-spec-cheat-sheet.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ on:
1414

1515
steps:
1616
- run: |
17-
for file in "${{ join repository.search_result_paths " " }}";
17+
IFS=$'\n'
18+
files="${{ join repository.search_result_paths "\n" }}"
19+
for file in $files;
1820
do
19-
sed -i 's/OLD-VALUE/NEW-VALUE/g;' ${file}
21+
sed -i 's/OLD-VALUE/NEW-VALUE/g;' "${file}"
2022
done
2123
container: alpine:3
2224
```

0 commit comments

Comments
 (0)