Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PRs with release-notes labels to the CHANGELOG #2067

Merged
merged 1 commit into from
May 31, 2024
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
8 changes: 8 additions & 0 deletions .github/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
changelog:
exclude:
labels:
- skip-changelog
categories:
- title: Changelog
labels:
- release-notes
10 changes: 10 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ permissions:
jobs:
release:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Branch
id: branch
Expand All @@ -31,6 +33,13 @@ jobs:
with:
ref: ${{ steps.branch.outputs.branch }}

- name: Get Release Notes
id: notes
uses: lucacome/draft-release@8a63d32c79a171ae6048e614a8988f0ac3ed56d4 # v1.1.0
with:
config-path: .github/release-notes.yml
dry-run: true

- name: Vars
id: vars
run: |
Expand Down Expand Up @@ -76,6 +85,7 @@ jobs:
sed -i -e "s/VERSION = edge/VERSION = ${{ inputs.version }}/g" Makefile
sed -i "6r .github/CHANGELOG_TEMPLATE.md" CHANGELOG.md
sed -i -e "s/%%VERSION%%/${{ inputs.version }}/g" CHANGELOG.md
sed -i "8a ${{ join(fromJson(steps.notes.outputs.release-sections).release-notes, '\n') }}\n" CHANGELOG.md
make generate-manifests

- name: Create Pull Request
Expand Down
Loading