Skip to content

Commit

Permalink
build: generate release notes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed May 5, 2024
1 parent 144a403 commit 2c2be54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-mmclient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-mmserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c2be54

Please sign in to comment.