From 6f9c9eb7401870b2520bcc0b9bd10ef25f78b1de Mon Sep 17 00:00:00 2001 From: yanyongyu <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:51:17 +0800 Subject: [PATCH] :wrench: change latest changes to chinese --- .github/workflows/release-drafter.yml | 2 ++ .github/workflows/release.yml | 1 + website/src/pages/changelog.md | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e26442fc..1b6200b2 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -35,6 +35,8 @@ jobs: with: changelog_file: website/src/pages/changelog.md latest_changes_position: '# 更新日志\n\n' + latest_changes_title: '## 最近更新' + replace_regex: '(?<=## 最近更新\n)[\s\S]*?(?=\n## )' changelog_body: ${{ steps.release-drafter.outputs.body }} commit_and_push: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25efa0ac..434ad156 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ jobs: uses: docker://ghcr.io/nonebot/auto-changelog:master with: changelog_file: website/src/pages/changelog.md + archive_regex: '(?<=## )最近更新(?=\n)' archive_title: ${{ env.TAG_NAME }} commit_and_push: false diff --git a/website/src/pages/changelog.md b/website/src/pages/changelog.md index 976b4927..f3a3abcc 100644 --- a/website/src/pages/changelog.md +++ b/website/src/pages/changelog.md @@ -4,7 +4,7 @@ description: Changelog # 更新日志 -## Latest Changes +## 最近更新 ### 💫 杂项