From 45802498e14dfb03d2d2b392031dafc4d85fcbd3 Mon Sep 17 00:00:00 2001 From: "Luong Vo (Lucas)" Date: Fri, 3 Nov 2023 17:46:42 +0700 Subject: [PATCH] test --- .github/workflows/android_deploy_production.yml | 13 +++++++++++-- .github/workflows/android_deploy_staging.yml | 15 ++++++++++----- .../{configuration.json => changelog-config.json} | 13 +++++++++++-- 3 files changed, 32 insertions(+), 9 deletions(-) rename .github/workflows/{configuration.json => changelog-config.json} (52%) diff --git a/.github/workflows/android_deploy_production.yml b/.github/workflows/android_deploy_production.yml index 5681a79c..30c04ea1 100644 --- a/.github/workflows/android_deploy_production.yml +++ b/.github/workflows/android_deploy_production.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - test-lucas jobs: build_and_deploy_android: @@ -15,13 +16,21 @@ jobs: - name: Check out uses: actions/checkout@v3 + - name: Find HEAD commit + id: head + run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + - name: Build changelog on "main" id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/configuration.json" + configuration: ".github/workflows/changelog-config.json" + # Listing PRs from the last tag to the HEAD commit + toTag: ${{ steps.head.outputs.sha }} token: ${{ secrets.GITHUB_TOKEN }} - name: Print release notes run: | - echo ${{ steps.changelog.outputs.changelog }} + echo categorized_prs ${{ steps.changelog.outputs.categorized_prs }} + echo uncategorized_prs ${{ steps.changelog.outputs.uncategorized_prs }} + echo "${{ steps.changelog.outputs.changelog }}" diff --git a/.github/workflows/android_deploy_staging.yml b/.github/workflows/android_deploy_staging.yml index aa5f3d36..1aabfed9 100644 --- a/.github/workflows/android_deploy_staging.yml +++ b/.github/workflows/android_deploy_staging.yml @@ -16,16 +16,21 @@ jobs: - name: Check out uses: actions/checkout@v3 + - name: Find HEAD commit + id: head + run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + - name: Build changelog on "develop" id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/configuration.json" - fromTag: "1.12.0" - toTag: "f41978f4c4bcc0848f3aa0a413815c5db6aafde2" + configuration: ".github/workflows/changelog-config.json" + # Listing PRs from the last tag to the HEAD commit + toTag: ${{ steps.head.outputs.sha }} token: ${{ secrets.GITHUB_TOKEN }} - name: Print release notes run: | - echo ${{ github.event.pull_request.head.ref }} - echo ${{ steps.changelog.outputs.changelog }} + echo categorized_prs ${{ steps.changelog.outputs.categorized_prs }} + echo uncategorized_prs ${{ steps.changelog.outputs.uncategorized_prs }} + echo "${{ steps.changelog.outputs.changelog }}" diff --git a/.github/workflows/configuration.json b/.github/workflows/changelog-config.json similarity index 52% rename from .github/workflows/configuration.json rename to .github/workflows/changelog-config.json index b61a10ea..9342c48e 100644 --- a/.github/workflows/configuration.json +++ b/.github/workflows/changelog-config.json @@ -1,7 +1,7 @@ { "categories": [ { - "title": "## 🚀 Features", + "title": "## ✨ Features", "labels": [ "type : feature" ] @@ -13,10 +13,19 @@ ] }, { - "title": "## 🧪 Chores", + "title": "## 🧹 Chores", "labels": [ "type : chore" ] + }, + { + "title": "## Others", + "exclude_labels": [ + "type : feature", + "type : bug", + "type : chore", + "type : release" + ] } ] }