diff --git a/.cicdtemplate/.github/workflows/config/changelog-release.json b/.cicdtemplate/.github/workflows/config/changelog-release.json new file mode 100644 index 000000000..34c629417 --- /dev/null +++ b/.cicdtemplate/.github/workflows/config/changelog-release.json @@ -0,0 +1,35 @@ +{ + "categories": [ + { + "title": "## โœจ Features", + "labels": [ + "type : feature" + ], + "empty_content": "N/A" + }, + { + "title": "## ๐Ÿ› Bug fixes", + "labels": [ + "type : bug" + ], + "empty_content": "N/A" + }, + { + "title": "## ๐Ÿงน Chores", + "labels": [ + "type : chore" + ], + "empty_content": "N/A" + }, + { + "title": "## Others", + "exclude_labels": [ + "type : feature", + "type : bug", + "type : chore", + "type : release" + ] + } + ], + "max_pull_requests": 200 +} diff --git a/.cicdtemplate/.github/workflows/create_release_pull_request.yml b/.cicdtemplate/.github/workflows/create_release_pull_request.yml new file mode 100644 index 000000000..91ea40fa2 --- /dev/null +++ b/.cicdtemplate/.github/workflows/create_release_pull_request.yml @@ -0,0 +1,25 @@ +name: Create the Release pull request + +on: + workflow_dispatch: + +jobs: + create_release_pull_request: + name: Create the Release pull request + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Check out the latest code + uses: actions/checkout@v4 + + - name: Read the current version + id: version + run: echo "version=$(perl -nle 'print $1 if /ANDROID_VERSION_NAME = \"(.*)\"$/' buildSrc/src/main/java/Versions.kt)" >> $GITHUB_OUTPUT + + - uses: nimblehq/github-actions-workflows/create_release_pull_request@0.1.10 + with: + release_version: ${{ steps.version.outputs.version }} + changelog_configuration: ".github/workflows/config/changelog-release.json" + assignee: bot-nimble diff --git a/.github/workflows/config/changelog-release.json b/.github/workflows/config/changelog-release.json new file mode 100644 index 000000000..34c629417 --- /dev/null +++ b/.github/workflows/config/changelog-release.json @@ -0,0 +1,35 @@ +{ + "categories": [ + { + "title": "## โœจ Features", + "labels": [ + "type : feature" + ], + "empty_content": "N/A" + }, + { + "title": "## ๐Ÿ› Bug fixes", + "labels": [ + "type : bug" + ], + "empty_content": "N/A" + }, + { + "title": "## ๐Ÿงน Chores", + "labels": [ + "type : chore" + ], + "empty_content": "N/A" + }, + { + "title": "## Others", + "exclude_labels": [ + "type : feature", + "type : bug", + "type : chore", + "type : release" + ] + } + ], + "max_pull_requests": 200 +} diff --git a/.github/workflows/create_release_pull_request.yml b/.github/workflows/create_release_pull_request.yml new file mode 100644 index 000000000..3c3a31325 --- /dev/null +++ b/.github/workflows/create_release_pull_request.yml @@ -0,0 +1,28 @@ +name: Create the Release pull request + +on: + workflow_dispatch: + +jobs: + create_release_pull_request: + name: Create the Release pull request + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Check out the latest code + uses: actions/checkout@v4 + + - name: Read the current version + id: version + uses: christian-draeger/read-properties@1.1.1 + with: + path: "version.properties" + properties: "templateScriptVersion" + + - uses: nimblehq/github-actions-workflows/create_release_pull_request@0.1.10 + with: + release_version: ${{ steps.version.outputs.templateScriptVersion }} + changelog_configuration: ".github/workflows/config/changelog-release.json" + assignee: bot-nimble