From 5bfc5d23700a0bc96133f61b45cb104eb227f7cb Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Fri, 9 Feb 2024 21:06:54 +0300 Subject: [PATCH] Fix for Release Notes Remove quotes smaller header --- .github/workflows/update-build-release.yml | 4 ++-- utility/extract_release_notes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-build-release.yml b/.github/workflows/update-build-release.yml index 83d9dfd..35cd9fe 100644 --- a/.github/workflows/update-build-release.yml +++ b/.github/workflows/update-build-release.yml @@ -82,8 +82,8 @@ jobs: sudo apt-get install jq sh ./.github/workflows/retrieve_version.sh - - name: Get Release HTML - run: echo "release_html=$(jq -r '."desktop-release-notes.$VERSION"' ./dist/release_notes.json)" >> $GITHUB_ENV + - name: Get Release Notes HTML + run: echo "release_html=$(jq -r --arg version "$VERSION" '.["desktop-release-notes." + $version]' ./dist/release_notes.json)" >> $GITHUB_ENV - run: rm -rf dist/release_notes.json diff --git a/utility/extract_release_notes.py b/utility/extract_release_notes.py index b755499..509d164 100644 --- a/utility/extract_release_notes.py +++ b/utility/extract_release_notes.py @@ -13,7 +13,7 @@ def build_html(data, first_launch=False): for i, element in enumerate(data): if element['type'] == 0: if first_launch and i == 0: - html += f"

{element['value']}

".replace('\n', '
') + html += f"

{element['value']}

".replace('\n', '
') continue if element['value'] == '\n': html += "
"