From 937cd0ede202e0c24bd2594d75d21981a98ab92c Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:45:45 -0300 Subject: [PATCH] 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. --- .github/workflows/changelog.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 0734984ac..8a59edd66 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -25,8 +25,8 @@ jobs: run: | set -x set -e - readarray -d ';' -t added_modified <<< '${{ steps.files.outputs.all_changed_files }}' - readarray -d ';' -t removed <<< '${{ steps.files.outputs.deleted_files }}' + IFS=';' read -a added_modified <<< '${{ steps.files.outputs.all_changed_files }}' + IFS=';' read -a removed <<< '${{ steps.files.outputs.deleted_files }}' added_count=${#added_modified[@]} removed_count=${#removed[@]} if ${{ !contains(github.event.pull_request.labels.*.name, 'no changelog' ) }}; then