From 1f21f12fc9a9306053a066a553704f74ffc2fb6e Mon Sep 17 00:00:00 2001 From: "Luong Vo (Lucas)" Date: Fri, 3 Nov 2023 23:11:57 +0700 Subject: [PATCH] Generate changelog on the latest PR for develop --- .../workflows/android_deploy_production.yml | 1 - .github/workflows/android_deploy_staging.yml | 7 +++++ .github/workflows/changelog-config.json | 31 ++----------------- 3 files changed, 9 insertions(+), 30 deletions(-) diff --git a/.github/workflows/android_deploy_production.yml b/.github/workflows/android_deploy_production.yml index 30c04ea1..4c3c9954 100644 --- a/.github/workflows/android_deploy_production.yml +++ b/.github/workflows/android_deploy_production.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - test-lucas jobs: build_and_deploy_android: diff --git a/.github/workflows/android_deploy_staging.yml b/.github/workflows/android_deploy_staging.yml index 1aabfed9..5b2e4509 100644 --- a/.github/workflows/android_deploy_staging.yml +++ b/.github/workflows/android_deploy_staging.yml @@ -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 diff --git a/.github/workflows/changelog-config.json b/.github/workflows/changelog-config.json index 9342c48e..dcc36af8 100644 --- a/.github/workflows/changelog-config.json +++ b/.github/workflows/changelog-config.json @@ -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 }