From b942cc4b94aa16530c0b38ae8696fdb50160803e Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 22 Jun 2024 20:20:59 +0200 Subject: [PATCH] Fix the URLs to scan results --- .github/workflows/build-and-release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 339ee569..5a471454 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -812,8 +812,21 @@ jobs: # Append each file and link to the changelog: for item in "${analysis_array[@]}"; do - filename=$(echo $item | cut -d'=' -f1 | xargs) - link=$(echo $item | cut -d'=' -f2) + + # Get the part before the first '=': + filename="${item%%=*}" + filename=$(echo $filename | xargs) + + # Ignore the latest.json file: + if [[ "$filename" == "latest.json" ]]; then + continue + fi + + # Get the part after the first '=': + link="${item#*=}" + link=$(echo $link | xargs) + + # Append this scan result to the changelog: echo "- [$(basename "$filename")]($link)" >> $temp_changelog done