diff --git a/.github/workflows/close-discussion.yaml b/.github/workflows/close-discussion.yaml index f3be9e4d1a..cbb0e34c71 100644 --- a/.github/workflows/close-discussion.yaml +++ b/.github/workflows/close-discussion.yaml @@ -22,12 +22,8 @@ jobs: discussion_ids_arr=() cat pr_body.txt | grep -i -Po '^\s*(-|\d+\.)?\s*(Resolve(s|d)?)\s*#\d+\s*$|^\s*(-|\d+\.)?\s*(Fix(es|ed)?)\s*#\d+\s*$|^\s*(-|\d+\.)?\s*(Close(s|d)?)\s*#\d+\s*$' | awk -F '#' '{print $2}' > discussion_ids_list.txt - while read -r line; do - discussion_ids_arr+=("$line") - done < discussion_ids_list.txt - + while read -r line; do discussion_ids_arr+=("$line"); done < discussion_ids_list.txt number_of_ids=${#discussion_ids_arr[@]} - echo "Number of IDs: ${number_of_id}" echo "IDs Array: ${discussion_ids_arr[@]}" echo "IDs List:"