fix change log generation again
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled

This commit is contained in:
shenleban tongying 2024-10-19 16:53:39 -04:00
parent a4e49e9152
commit ad6a0472cc

View file

@ -171,21 +171,21 @@ jobs:
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>🔴 Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>", "template": "#{{CHANGELOG}}\n\n<details>\n<summary>🔴 Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [ "categories": [
{ {
"title": "## 🚀 Features", "title": "#### 🚀 Features",
"labels": ["feature","feat","opt"] "labels": ["feature","feat"]
}, },
{ {
"title": "## 🐛 Fixes", "title": "#### 🔧 Fixes and Optimizations",
"labels": ["fix","bug"] "labels": ["fix","bug", "opt"]
} }
, ,
{ {
"title": "## 🤖 DevOps", "title": "#### 🤖 DevOps",
"labels": ["action"] "labels": ["action"]
} }
, ,
{ {
"title": "## 🧼 Clean Code", "title": "#### 🧼 Clean Code",
"labels": ["clean","refactor"] "labels": ["clean","refactor"]
} }
@ -201,7 +201,8 @@ jobs:
} }
- name: Get changelog.txt - name: Get changelog.txt
run: | run: |
cat <<HEREDOC > changelog.txt # HEREDOC must be quoted to avoid Bash substitution
cat <<'HEREDOC' > changelog.txt
[Install instructions for Windows, macOS and Linux](https://xiaoyifang.github.io/goldendict-ng/install/). [Install instructions for Windows, macOS and Linux](https://xiaoyifang.github.io/goldendict-ng/install/).
Filename pattern: GoldenDict-ng-[version]-[Qt version]-[system name]... Filename pattern: GoldenDict-ng-[version]-[Qt version]-[system name]...
@ -209,7 +210,7 @@ jobs:
For Linux, the released version is on Flathub → [io.github.xiaoyifang.goldendict_ng](https://flathub.org/apps/io.github.xiaoyifang.goldendict_ng). For Linux, the released version is on Flathub → [io.github.xiaoyifang.goldendict_ng](https://flathub.org/apps/io.github.xiaoyifang.goldendict_ng).
Based on branch: ${{ github.ref_name }} Based on branch: ${{ github.ref_name }}
#### Changes ### Changes
${{ steps.build_changelog.outputs.changelog }} ${{ steps.build_changelog.outputs.changelog }}
HEREDOC HEREDOC
- name: Get release title - name: Get release title