[skip ci]: Fix auto issue labeling (#1709)

* Update issue_auto_label.yml

* Update blank_report_issue.yml
This commit is contained in:
Patrick Loser
2025-06-09 05:10:31 +02:00
committed by GitHub
parent c4d18415de
commit 0ed3ab94ea
2 changed files with 18 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ jobs:
- name: Extract the plugin from issue body
id: parse-issue
run: |
SELECTED_PLUGIN=$(echo "${{ github.event.issue.body }}" | grep "### Plugin" -A 2 | tail -n 1 | sed 's/[[:space:]]*$//')
SELECTED_PLUGIN=$(echo "${{ github.event.issue.body }}" | awk '/### Plugin/ {f=1; next} f && NF {print; exit}' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
echo "SELECTED_PLUGIN=$SELECTED_PLUGIN" >> $GITHUB_ENV