diff --git a/.github/workflows/release-mmclient.yaml b/.github/workflows/release-mmclient.yaml index 0ab356b..0b36e21 100644 --- a/.github/workflows/release-mmclient.yaml +++ b/.github/workflows/release-mmclient.yaml @@ -89,8 +89,12 @@ jobs: run: cargo install git-cliff - name: generate release notes run: |- - echo "# Client version ${GITHUB_REF_NAME/mmclient-v/}" >> release-notes.txt - git cliff -c .github/workflows/cliff.toml --include-path "mm-client/**/*" | tail -n +2 >> release-notes.txt + echo "# Client version ${GITHUB_REF_NAME/mmclient-v/}" | tee -a release-notes.txt + git cliff -c .github/workflows/cliff.toml \ + --include-path "mm-client/**/*" \ + --tag-pattern "client" \ + --current --latest | tail -n +2 | tee -a "$RUNNER_TEMP/release-notes.txt" + - name: download artifacts uses: actions/download-artifact@v4 diff --git a/.github/workflows/release-mmserver.yaml b/.github/workflows/release-mmserver.yaml index b942555..b32bdb2 100644 --- a/.github/workflows/release-mmserver.yaml +++ b/.github/workflows/release-mmserver.yaml @@ -41,7 +41,11 @@ jobs: - name: generate release notes run: |- echo "# Server version ${GITHUB_REF_NAME/mmserver-v/}" >> release-notes.txt - git cliff -c .github/workflows/cliff.toml --include-path "mm-server/**/*" | tail -n +2 >> release-notes.txt + git cliff -c .github/workflows/cliff.toml \ + --include-path "mm-server/**/*" \ + --tag-pattern "server" \ + --current --latest | tail -n +2 | tee -a "$RUNNER_TEMP/release-notes.txt" + - name: create release uses: softprops/action-gh-release@v2