From 7cb07f470f0bef79737e2c2cd734eaa17c4c8a5f Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 22 Jun 2024 20:38:21 +0200 Subject: [PATCH] Remove the scan result for latest.json again --- .github/workflows/build-and-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 5a471454..97c96ca1 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -817,8 +817,11 @@ jobs: filename="${item%%=*}" filename=$(echo $filename | xargs) + # Extract the base name of the file + base_filename=$(basename "$filename") + # Ignore the latest.json file: - if [[ "$filename" == "latest.json" ]]; then + if [[ "$base_filename" == "latest.json" ]]; then continue fi @@ -827,7 +830,7 @@ jobs: link=$(echo $link | xargs) # Append this scan result to the changelog: - echo "- [$(basename "$filename")]($link)" >> $temp_changelog + echo "- [$base_filename]($link)" >> $temp_changelog done # Export the modified changelog (using HEREDOC syntax for multi-line support):