diff --git a/.github/workflows/android_deploy_production.yml b/.github/workflows/android_deploy_production.yml index 8226d7c..ce95dfc 100644 --- a/.github/workflows/android_deploy_production.yml +++ b/.github/workflows/android_deploy_production.yml @@ -65,7 +65,7 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit toTag: ${{ steps.head.outputs.sha }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/android_deploy_staging.yml b/.github/workflows/android_deploy_staging.yml index 6bd9869..7c76473 100644 --- a/.github/workflows/android_deploy_staging.yml +++ b/.github/workflows/android_deploy_staging.yml @@ -64,7 +64,7 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit toTag: ${{ steps.head.outputs.sha }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/configs/changelog-config.json b/.github/workflows/configs/changelog-config.json new file mode 100644 index 0000000..c795bff --- /dev/null +++ b/.github/workflows/configs/changelog-config.json @@ -0,0 +1,32 @@ +{ + "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" + ] + } + ], + "max_pull_requests": 200 +} diff --git a/.github/workflows/ios_deploy_staging_to_firebase.yml b/.github/workflows/ios_deploy_staging_to_firebase.yml index 5c4eb73..a2aa65a 100644 --- a/.github/workflows/ios_deploy_staging_to_firebase.yml +++ b/.github/workflows/ios_deploy_staging_to_firebase.yml @@ -67,7 +67,7 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit toTag: ${{ steps.head.outputs.sha }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/bricks/template/__brick__/.github/workflows/android_deploy_production.yml b/bricks/template/__brick__/.github/workflows/android_deploy_production.yml index 2d10264..8aa9798 100644 --- a/bricks/template/__brick__/.github/workflows/android_deploy_production.yml +++ b/bricks/template/__brick__/.github/workflows/android_deploy_production.yml @@ -59,7 +59,7 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit toTag: ${{#mustacheCase}}steps.head.outputs.sha{{/mustacheCase}} token: ${{#mustacheCase}}secrets.GITHUB_TOKEN{{/mustacheCase}} diff --git a/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml b/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml index bf3dc9f..f4d3a62 100644 --- a/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml +++ b/bricks/template/__brick__/.github/workflows/android_deploy_staging.yml @@ -58,10 +58,10 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit - toTag: ${{ steps.head.outputs.sha }} - token: ${{ secrets.GITHUB_TOKEN }} + toTag: ${{#mustacheCase}}steps.head.outputs.sha{{/mustacheCase}} + token: ${{#mustacheCase}}secrets.GITHUB_TOKEN{{/mustacheCase}} - name: Deploy Android Staging to Firebase uses: wzieba/Firebase-Distribution-Github-Action@v1.5.0 diff --git a/bricks/template/__brick__/.github/workflows/configs/changelog-config.json b/bricks/template/__brick__/.github/workflows/configs/changelog-config.json new file mode 100644 index 0000000..c795bff --- /dev/null +++ b/bricks/template/__brick__/.github/workflows/configs/changelog-config.json @@ -0,0 +1,32 @@ +{ + "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" + ] + } + ], + "max_pull_requests": 200 +} diff --git a/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml index c3cc7e4..9ec61cc 100644 --- a/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml +++ b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml @@ -61,10 +61,10 @@ jobs: id: changelog uses: mikepenz/release-changelog-builder-action@v4 with: - configuration: ".github/workflows/changelog-config.json" + configuration: ".github/workflows/configs/changelog-config.json" # Listing PRs from the last tag to the HEAD commit - toTag: ${{ steps.head.outputs.sha }} - token: ${{ secrets.GITHUB_TOKEN }} + toTag: ${{#mustacheCase}}steps.head.outputs.sha{{/mustacheCase}} + token: ${{#mustacheCase}}secrets.GITHUB_TOKEN{{/mustacheCase}} - name: Run code generator run: flutter packages pub run build_runner build --delete-conflicting-outputs