Skip to content

Commit

Permalink
Generate changelog on the latest PR for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Nov 3, 2023
1 parent d8f4b93 commit 1f21f12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 30 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android_deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- test-lucas

jobs:
build_and_deploy_android:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
id: head
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Limit changelog to the latest pull request only
uses: jossef/action-set-json-field@v2
with:
file: .github/workflows/changelog-config.json
field: max_pull_requests
value: 1

- name: Build changelog on "develop"
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
Expand Down
31 changes: 2 additions & 29 deletions .github/workflows/changelog-config.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
{
"categories": [
{
"title": "## ✨ Features",
"labels": [
"type : feature"
]
},
{
"title": "## 🐛 Bug fixes",
"labels": [
"type : bug"
]
},
{
"title": "## 🧹 Chores",
"labels": [
"type : chore"
]
},
{
"title": "## Others",
"exclude_labels": [
"type : feature",
"type : bug",
"type : chore",
"type : release"
]
}
]
"categories": [],
"max_pull_requests": 200
}

0 comments on commit 1f21f12

Please sign in to comment.