mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-24 14:34:39 +03:00
Fix for Release Notes
Remove quotes smaller header
This commit is contained in:
parent
671028ebd5
commit
5bfc5d2370
4
.github/workflows/update-build-release.yml
vendored
4
.github/workflows/update-build-release.yml
vendored
@ -82,8 +82,8 @@ jobs:
|
|||||||
sudo apt-get install jq
|
sudo apt-get install jq
|
||||||
sh ./.github/workflows/retrieve_version.sh
|
sh ./.github/workflows/retrieve_version.sh
|
||||||
|
|
||||||
- name: Get Release HTML
|
- name: Get Release Notes HTML
|
||||||
run: echo "release_html=$(jq -r '."desktop-release-notes.$VERSION"' ./dist/release_notes.json)" >> $GITHUB_ENV
|
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
|
- run: rm -rf dist/release_notes.json
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ def build_html(data, first_launch=False):
|
|||||||
for i, element in enumerate(data):
|
for i, element in enumerate(data):
|
||||||
if element['type'] == 0:
|
if element['type'] == 0:
|
||||||
if first_launch and i == 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
|
continue
|
||||||
if element['value'] == '\n':
|
if element['value'] == '\n':
|
||||||
html += "<br/>"
|
html += "<br/>"
|
||||||
|
Loading…
Reference in New Issue
Block a user