This commit is contained in:
CanbiZ 2025-03-10 16:05:40 +01:00
commit f52767bef0

View File

@ -23,16 +23,20 @@ jobs:
run: | run: |
echo "Filtering Issues with Label MigrationTest" echo "Filtering Issues with Label MigrationTest"
gh issue list --label "MigrationTest" --repo community-scripts/ProxmoxVED raw_output=$(gh issue list --json title,labels)
gh issue list --label "MigrationTest" --json title filtered_issues=$(echo "$raw_output" | jq -r '.[] | select(.labels[]? == "MigrationTest") | .title')
if [ -z "$filtered_issues" ]; then
echo "No issues found with label 'MigrationTest'."
else
script_name=$(gh issue list --label "MigrationTest" --json title --jq '.[0].title') echo "Found script names with 'MigrationTest' label:"
echo "Found script name: $script_name" echo "$filtered_issues"
for script_name in $filtered_issues; do
script_name_lowercase=$(echo "$script_name" | tr '[:upper:]' '[:lower:]') echo "Processing: $script_name"
echo "Lowercase script name: $script_name_lowercase" script_name_lowercase=$(echo "$script_name" | tr '[:upper:]' '[:lower:]')
echo "Lowercase script name: $script_name_lowercase"
echo "script_name=$script_name_lowercase" >> $GITHUB_ENV done
fi
- name: Check if script files exist - name: Check if script files exist
id: check_files id: check_files