Skip to content

Commit

Permalink
Use another changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
MG-5 committed Jan 13, 2023
1 parent 6083aca commit d9a8020
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ jobs:
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: "Generate release changelog"
id: generate-release-changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: "false" # set to false if no tags exist (buggy with only one tag)
stripHeaders: "true"
stripGeneratorNotice: "true"

- name: Extract the VERSION name
id: get-version
Expand All @@ -36,12 +28,29 @@ jobs:
name: build-artifact
path: build/artifacts

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
with:
configurationJson: |
{
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
"categories": [
{
"title": "## Changes",
"labels": ["other"]
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Create GitHub release"
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: "${{ steps.get-version.outputs.VERSION }}"
body: "${{ steps.generate-release-changelog.outputs.changelog }}"
body: ${{steps.github_release.outputs.changelog}}
prerelease: ${{ startsWith(steps.get-version.outputs.VERSION, 'v0.') }}
token: ${{ secrets.GITHUB_TOKEN }}
files: |
Expand Down

0 comments on commit d9a8020

Please sign in to comment.