Skip to content

Commit

Permalink
[#525] Add create_release_pr workflow to .cicdtemplate folder for the…
Browse files Browse the repository at this point in the history
… new project
  • Loading branch information
luongvo committed Nov 24, 2023
1 parent 5636b58 commit 875782a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .cicdtemplate/.github/workflows/config/changelog-release.json
Original file line number Diff line number Diff line change
@@ -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
}
25 changes: 25 additions & 0 deletions .cicdtemplate/.github/workflows/create_release_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create the Release pull request

on:
workflow_dispatch:

jobs:
create_release_pr:
name: Create the Release pull request
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout the latest code
uses: actions/checkout@v3

- 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/[email protected]
with:
version: ${{ steps.version.outputs.version }}
changelogConfiguration: ".github/workflows/config/changelog-release.json"
assignee: bot-nimble

0 comments on commit 875782a

Please sign in to comment.