We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e67d908 commit 08cbea6Copy full SHA for 08cbea6
1 file changed
.github/actions/update-vscode-extensions/update-vscode-extensions.sh
@@ -34,14 +34,13 @@ get_github_releasenotes() {
34
35
RELEASE_BODY=$(gh release view --json body --jq '.body' -R $GITHUB_URL $TAG)
36
MAX_RELEASE_BODY_SIZE=32768
37
- TRUNCATED=""
38
39
if [[ ${#RELEASE_BODY} -gt $MAX_RELEASE_BODY_SIZE ]]
40
then
41
- TRUNCATED="\n\n... [truncated]"
+ printf "%.*s\n\n... [truncated]\n\n" "$MAX_RELEASE_BODY_SIZE" "$RELEASE_BODY" "$TRUNCATED"
+ else
42
+ printf "%s\n\n" "$RELEASE_BODY"
43
fi
-
44
- printf "%.*s%s\n\n" "$MAX_RELEASE_BODY_SIZE" "$RELEASE_BODY" "$TRUNCATED"
45
done
46
}
47
0 commit comments