From 3c859424d84eb5715cbd457320d0c36d6a3e9b88 Mon Sep 17 00:00:00 2001 From: Farshad DASHTI Date: Fri, 20 Dec 2024 13:30:07 +0000 Subject: [PATCH] Added more logs --- .github/workflows/nuget-package-template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nuget-package-template.yml b/.github/workflows/nuget-package-template.yml index 2dd7ce0..ce73c2f 100644 --- a/.github/workflows/nuget-package-template.yml +++ b/.github/workflows/nuget-package-template.yml @@ -93,6 +93,8 @@ jobs: FEED_URL="https://nuget.pkg.github.com/DFE-Digital/query?q=$PACKAGE_ID" ALL_VERSIONS=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$FEED_URL" | jq -r '.data[].version') + echo "All Versions: ${ALL_VERSIONS:-None}" + # Find the latest version with `-beta` suffix LATEST_BETA_VERSION=$(echo "$ALL_VERSIONS" | grep -E '\-beta$' | sort -V | tail -n 1)