Skip to content

Commit 6635e20

Browse files
bors[bot]guihkx
andauthored
Merge #1139
1139: CI: Fix changelog check r=Alexhuszagh a=guihkx `readarray` is supposed to be used with actual files, so replace it with `read` and also configure bash's internal field separator (IFS) to use the `;` character as the delimiter. This allows for the list of files to be properly split. Co-authored-by: guihkx <[email protected]>
2 parents ace4223 + 937cd0e commit 6635e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
run: |
2626
set -x
2727
set -e
28-
readarray -d ';' -t added_modified <<< '${{ steps.files.outputs.all_changed_files }}'
29-
readarray -d ';' -t removed <<< '${{ steps.files.outputs.deleted_files }}'
28+
IFS=';' read -a added_modified <<< '${{ steps.files.outputs.all_changed_files }}'
29+
IFS=';' read -a removed <<< '${{ steps.files.outputs.deleted_files }}'
3030
added_count=${#added_modified[@]}
3131
removed_count=${#removed[@]}
3232
if ${{ !contains(github.event.pull_request.labels.*.name, 'no changelog' ) }}; then

0 commit comments

Comments
 (0)