Skip to content

Commit

Permalink
Maybe this'll fix 'close-discussion.yml' Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
og-mrk committed Jul 29, 2024
1 parent 6951e45 commit 4b9ebf7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/close-discussion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 4b9ebf7

Please sign in to comment.