From a61bba1fb63c0d9582c02ad61bbaf721d00a8d4b Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 1 Mar 2024 21:31:33 -0800 Subject: [PATCH] chore(ci): Generate a shortened changelog and use that to generate the Steam BBCode changelog --- .github/workflows/generate_changelog.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_changelog.yml b/.github/workflows/generate_changelog.yml index ccf0260b77..adcc1cb9a4 100644 --- a/.github/workflows/generate_changelog.yml +++ b/.github/workflows/generate_changelog.yml @@ -25,9 +25,12 @@ jobs: shell: pwsh - name: Checkout Repository uses: actions/checkout@v4 + - name: Shorten Changelog + run : | + awk '/^## / {count++} count <= 2 {print;}' CHANGELOG.md > CHANGELOG_SHORT.md - name: Create BB Code Changelog for Steam run: | - markdown_to_bbcodesteam -i "CHANGELOG.md" -o "CHANGELOG-BBCODE.txt"; + markdown_to_bbcodesteam -i "CHANGELOG-SHORT.md" -o "CHANGELOG-BBCODE.txt"; shell: pwsh - name: Create Pull Request uses: peter-evans/create-pull-request@v6 @@ -41,3 +44,4 @@ jobs: signoff: false add-paths: | CHANGELOG-BBCODE.txt + CHANGELOG-SHORT.md