-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from nimblehq/feature/525-reuse-release-pr-wo…
…rkflow [#525] Reuse the "nimblehq/github-actions-workflows/create_release_pr" workflow to automate Release PR creating
- Loading branch information
Showing
4 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
.cicdtemplate/.github/workflows/config/changelog-release.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
.cicdtemplate/.github/workflows/create_release_pull_request.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_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/[email protected] | ||
with: | ||
release_version: ${{ steps.version.outputs.version }} | ||
changelog_configuration: ".github/workflows/config/changelog-release.json" | ||
assignee: bot-nimble |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
with: | ||
path: "version.properties" | ||
properties: "templateScriptVersion" | ||
|
||
- uses: nimblehq/github-actions-workflows/[email protected] | ||
with: | ||
release_version: ${{ steps.version.outputs.templateScriptVersion }} | ||
changelog_configuration: ".github/workflows/config/changelog-release.json" | ||
assignee: bot-nimble |