From 4c7d8f9ee86c3daed314e26a501aa23110e0f153 Mon Sep 17 00:00:00 2001 From: Ron <45816308+rjaegers@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:41:08 +0000 Subject: [PATCH] chore: add GitHub release details --- .../update-vscode-extensions/update-vscode-extensions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/update-vscode-extensions/update-vscode-extensions.sh b/.github/actions/update-vscode-extensions/update-vscode-extensions.sh index 5b450731..ef2c179d 100755 --- a/.github/actions/update-vscode-extensions/update-vscode-extensions.sh +++ b/.github/actions/update-vscode-extensions/update-vscode-extensions.sh @@ -16,7 +16,10 @@ for EXTENSION in $(echo $JSON | jq -r '.[].customizations.vscode.extensions | fl if [[ $CURRENT_VERSION != $LATEST_NON_PRERELEASE_VERSION ]]; then - UPDATE_DETAILS=$(printf "Updates \`%s\` from %s to %s\n\n%s" $NAME $CURRENT_VERSION $LATEST_NON_PRERELEASE_VERSION "$UPDATE_DETAILS") + GITHUB_URL=$(echo $LATEST_NON_PRERELEASE_VERSION_JSON | jq -r '.properties | map(select(.key == "Microsoft.VisualStudio.Services.Links.GitHub"))[] | .value') + + RELEASE_DETAILS=$(gh release view --json body -R $GITHUB_URL | jq -r '.body') + UPDATE_DETAILS=$(printf "Updates \`%s\` from %s to %s\n
Release notes%s
\n\n%s" $NAME $CURRENT_VERSION $LATEST_NON_PRERELEASE_VERSION "$RELEASE_DETAILS" "$UPDATE_DETAILS") fi EXTENSIONS="\"$NAME@$LATEST_NON_PRERELEASE_VERSION\",$EXTENSIONS"