Skip to content

Commit

Permalink
Merge pull request #386 from DependencyTrack/generate-releasenotes
Browse files Browse the repository at this point in the history
Let GitHub generate release notes
  • Loading branch information
VithikaS authored Oct 23, 2023
2 parents 1541804 + c795b54 commit 01bb065
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/default-release-notes.md

This file was deleted.

14 changes: 14 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
changelog:
categories:
- title: Enhancements 🚀
labels:
- enhancement
- title: Bug Fixes 🐛
labels:
- bug
- title: Dependency Updates 🤖
labels:
- dependencies
- title: Other Changes
labels:
- "*"
9 changes: 0 additions & 9 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_RELEASE_TOKEN }}
run: |-
cat << EOF >> .github/default-release-notes.md
\`\`\`text
$(cat target/checksums.txt)
\`\`\`
EOF
gh release edit ${{ needs.read-version.outputs.version }} \
--notes-file ".github/default-release-notes.md"
gh release upload ${{ needs.read-version.outputs.version }} \
--clobber \
target/dependency-track-apiserver.jar \
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ jobs:
run: |-
gh release create "${{ needs.prepare-release.outputs.version }}" \
--target "${{ needs.prepare-release.outputs.release-branch }}" \
--title "${{ needs.prepare-release.outputs.version }}" \
--notes-file ".github/default-release-notes.md"
--generate-notes
post-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 01bb065

Please sign in to comment.