-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate release notes instead of changelog
- Loading branch information
1 parent
fb0e8fe
commit 27179d3
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,28 +62,26 @@ jobs: | |
ghcr.io/${{ github.repository }}:${{ env.RELEASE_TAG }}-${{ env.COMMIT_HASH }} | ||
ghcr.io/${{ github.repository }}:${{ env.RELEASE_TAG }}-${{ env.COMMIT_HASH }}-${{ env.BUILD_TIMESTAMP }} | ||
- name: "Generate release changelog" | ||
uses: heinrichreimer/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
output: "CHANGELOG.md" | ||
|
||
- name: Patch CHANGELOG.md | ||
- name: Generate NOTES.md | ||
env: | ||
GITHUB_REPOSITORY: ${{ github.repository }} | ||
GIT_REF: ${{ github.ref_name }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo "## Versions" >> tmp-CHANGELOG.md | ||
echo "Pocketbase: [v$POCKETBASE_VERSION](https://github.com/pocketbase/pocketbase/releases/tag/v$POCKETBASE_VERSION)" >> tmp-CHANGELOG.md | ||
echo "Litestream: [v$LITESTREAM_VERSION](https://github.com/benbjohnson/litestream/releases/tag/v$LITESTREAM_VERSION)" >> tmp-CHANGELOG.md | ||
echo "" >> tmp-CHANGELOG.md | ||
echo "## Versions" >> NOTES.md | ||
echo "Pocketbase: [v$POCKETBASE_VERSION](https://github.com/pocketbase/pocketbase/releases/tag/v$POCKETBASE_VERSION)" >> NOTES.md | ||
echo "Litestream: [v$LITESTREAM_VERSION](https://github.com/benbjohnson/litestream/releases/tag/v$LITESTREAM_VERSION)" >> NOTES.md | ||
echo "" >> NOTES.md | ||
gh api repos/$GITHUB_REPOSITORY/releases/generate-notes -f tag_name=$RELEASE_VERSION -f target_commitish=$GIT_REF -q .body >> NOTES.md | ||
cat CHANGELOG.md > tmp-CHANGELOG.md | ||
mv tmp-CHANGELOG.md CHANGELOG.md | ||
cat CHANGELOG.md >> $GITHUB_STEP_SUMMARY | ||
cat NOTES.md >> $GITHUB_STEP_SUMMARY | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body_path: "CHANGELOG.md" | ||
body_path: "NOTES.md" | ||
name: ${{ env.RELEASE_TAG }} | ||
tag_name: ${{ env.RELEASE_TAG }} | ||
make_latest: 'true' |