Skip to content

Commit 937cd0e

Browse files
committed
CI: Fix changelog check
`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.
1 parent ace4223 commit 937cd0e

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)