Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- dependabot[bot]
categories:
- title: Features
labels:
- enhancement
- title: Fixes
labels:
- bug
- title: Other Changes
labels:
- "*"
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ jobs:
export RELEASE_ID
sh scripts/validate-release.sh

- name: generate release notes
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
TAG: ${{ github.ref_name }}
run: |
RELEASE_ID=$(gh api --paginate "repos/$REPO/releases?per_page=100" --jq ".[] | select(.tag_name == \"$TAG\" and .draft == true) | .id" | head -n 1)
test -n "$RELEASE_ID"
GENERATED_NOTES=$(gh api -X POST "repos/$REPO/releases/generate-notes" -f tag_name="$TAG" --jq .body)
test -n "$GENERATED_NOTES"
PLATFORM_NOTICE='macOS DMGs are Developer ID signed and notarized by Apple. The Windows NSIS setup wizard is unsigned and may trigger SmartScreen; choose More info, then Run anyway.'
jq -n --arg notice "$PLATFORM_NOTICE" --arg notes "$GENERATED_NOTES" '{body: ($notice + "\n\n" + $notes)}' |
gh api -X PATCH "repos/$REPO/releases/$RELEASE_ID" --input -

- name: publish release
env:
GH_TOKEN: ${{ github.token }}
Expand Down