0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Fix for Release Notes

Remove quotes

smaller header
This commit is contained in:
Andrey Onishchenko 2024-02-09 21:06:54 +03:00
parent 671028ebd5
commit 5bfc5d2370
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"<h2>{element['value']}</h2>".replace('\n', '<br/>')
html += f"<h3>{element['value']}</h3>".replace('\n', '<br/>')
continue
if element['value'] == '\n':
html += "<br/>"