-
Notifications
You must be signed in to change notification settings - Fork 27
update release changelog with docs-builder #1047
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
base: main
Are you sure you want to change the base?
Changes from all commits
5b8d8b9
a5d38ff
e172367
941e2f7
ac4b775
5faef99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
macroscopeapp[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,16 +221,19 @@ jobs: | |
| uses: ./.github/workflows/gradle-goal | ||
| with: | ||
| command: "" | ||
| - name: Docs builder setup | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Critical The 🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this file is created by |
||
| uses: elastic/docs-actions/docs-builder/setup@v1 | ||
| - name: Print Release Notes | ||
| id: print_release_notes | ||
| # note: release notes here will be copied as-is from 'CHANGELOG.next-release.md' | ||
| # the 'pre-post-release' workflow executed after this will reset contents of 'CHANGELOG.next-release.md' | ||
| # FIXME using temporary workaround from https://github.com/elastic/docs-builder/issues/3057 | ||
| run: | | ||
| echo 'notes<<RELNOTESEOF' >> $GITHUB_OUTPUT | ||
SylvainJuge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cat CHANGELOG.next-release.md >> $GITHUB_OUTPUT | ||
| printf '\nThis release is based on the following upstream versions:\n\n' >> $GITHUB_OUTPUT | ||
| ./gradlew -q printUpstreamDependenciesMarkdown >> $GITHUB_OUTPUT | ||
| echo 'RELNOTESEOF' >> $GITHUB_OUTPUT | ||
| tmp="$(mktemp -d)" | ||
| docs-builder changelog render --input "${tmp}/${{ env.RELEASE_VERSION }}" --output "${tmp}" | ||
| cat "${tmp}/${{ env.RELEASE_VERSION }}/index.md" \ | ||
| | sed -e "/## ${{ env.RELEASE_VERSION }} \[elastic-release-notes-${{ env.RELEASE_VERSION }}/d" \ | ||
| | sed -e "/###/s/ \[elastic-${{ env.RELEASE_VERSION }}.*$//g" >> $GITHUB_OUTPUT | ||
| echo 'RELNOTESEOF' >> $GITHUB_OUTPUT | ||
SylvainJuge marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| post-release: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setting the
{version}asNEXTis not needed, nor is the 3rd element of the product definition, theedot-java-releaseprofile will match all the changelog entries in thedocs/changelog/folder.