Skip to content

Commit

Permalink
Updated release body for Windows/Linux native build
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgreffier committed Jan 18, 2023
1 parent 6ee409f commit 006cc64
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/on_push_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,19 @@ jobs:
./gradlew nativeCompile
echo current_version=$(echo $(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')) >> $GITHUB_OUTPUT
- name: Generate release changelog
uses: mikepenz/release-changelog-builder-action@v3.6.0
id: build_changelog
with:
configuration: "changelog-builder.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update release
uses: ncipollo/release-action@v1.12.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.build_changelog.outputs.changelog }}
artifacts: ${{ github.workspace }}/build/native/nativeCompile/kafkactl-${{ steps.build_native.outputs.current_version }}
draft: true
prerelease: true
Expand Down Expand Up @@ -135,10 +144,19 @@ jobs:
gradlew.bat nativeCompile
shell: cmd

- name: Generate release changelog
uses: mikepenz/release-changelog-builder-action@v3.6.0
id: build_changelog
with:
configuration: "changelog-builder.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update release
uses: ncipollo/release-action@v1.12.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.build_changelog.outputs.changelog }}
artifacts: ${{ github.workspace }}/build/native/nativeCompile/kafkactl-*.exe
draft: true
prerelease: true
Expand Down
10 changes: 5 additions & 5 deletions changelog-builder.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"categories": [
{
"title": "## :sparkles: News",
"title": "# :sparkles: News",
"labels": ["feature"]
},
{
"title": "## :zap: Improvements",
"title": "# :zap: Improvements",
"labels": ["enhancement"]
},
{
"title": "## :bug: Bugfixes",
"title": "# :bug: Bugfixes",
"labels": ["bug"]
},
{
"title": "## :memo: Documentation",
"title": "# :memo: Documentation",
"labels": ["documentation"]
},
{
"title": "## :speech_balloon: Other",
"title": "# :speech_balloon: Other",
"labels": ["refactor", "test"]
}
],
Expand Down

0 comments on commit 006cc64

Please sign in to comment.