Skip to content

Commit

Permalink
chore: add GitHub release details
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaegers committed Mar 5, 2024
1 parent d841702 commit 4c7d8f9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<details><summary>Release notes</summary>%s</details>\n\n%s" $NAME $CURRENT_VERSION $LATEST_NON_PRERELEASE_VERSION "$RELEASE_DETAILS" "$UPDATE_DETAILS")
fi

EXTENSIONS="\"$NAME@$LATEST_NON_PRERELEASE_VERSION\",$EXTENSIONS"
Expand Down

0 comments on commit 4c7d8f9

Please sign in to comment.