Skip to content

Commit

Permalink
Merge pull request #6654 from Ocelot-Social-Community/6640-devops-add…
Browse files Browse the repository at this point in the history
…-github-action-to-create-a-formatted-changelog

ci(other): improve structure and readability of auto-generated changelog
  • Loading branch information
mahula authored Dec 11, 2023
2 parents 30885f7 + a077f12 commit 1c3c519
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,38 @@ jobs:
version: ${{ env.BUILD_VERSION }}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "b"

- name: Generate changelog
run: |
yarn install
yarn auto-changelog --latest-version ${{ env.VERSION }} --unreleased-only
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configurationJson: |
{
"pr_template": "- ##{{NUMBER}} #{{TITLE}} #{{ASSIGNEES}}",
"categories": [
{
"title": "### 🚀 Features",
"labels": ["feat"]
},
{
"title": "### 🐛 Fixes",
"labels": ["fix"]
},
{
"title": "### 💬 Refactoring, Documentation & Other",
"labels": ["chore","ci","docs","refactor"]
},
{
"title": "### 📦 Build & Dependencies",
"labels": ["build","bump"]
}
],
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: package-version-to-git-release
continue-on-error: true # Will fail if tag exists
id: create_release
Expand All @@ -273,7 +301,7 @@ jobs:
with:
tag_name: ${{ env.VERSION }}
release_name: ${{ env.VERSION }}
body_path: ./CHANGELOG.md
body: ${{steps.changelog.outputs.changelog}}
draft: false
prerelease: false

Expand Down

0 comments on commit 1c3c519

Please sign in to comment.