android-templates
android-templates copied to clipboard
[#525] 2/2 - Reuse the "nimblehq/github-actions-workflows/create_release_pr" workflow to automate Release PR creating
https://github.com/nimblehq/android-templates/issues/525
What happened 👀
- Reuse the nimblehq/github-actions-workflows/create_release_pr workflow to same time & maintenance effort.
- Add "create_release_pr" workflow to
.cicdtemplate
folder for the new project.
Insight 📝
-
Thanks to GitHub Composite action. We can now define the workflow easily by reusing it with some custom parameters.
-
When running the workflow for an actual Android project, we must read the current version from the
Versions.kt
class. One of the solutions is using this script:perl -nle 'print $1 if /ANDROID_VERSION_NAME = \"(.*)\"$/' buildSrc/src/main/java/Versions.kt .2.3
Proof Of Work 📹
The sample Release PR: https://github.com/nimblehq/android-templates/pull/561 ✅
Test log: https://github.com/nimblehq/android-templates/actions/runs/6976997732
1 Warning | |
---|---|
:warning: | Uh oh! Your project is under 80% coverage! |
Kover report for template-compose:
🧛 Template - Compose Unit Tests Code Coverage: 61.57%
Coverage of Modified Files:
File | Coverage |
---|
Modified Files Not Found In Coverage Report:
changelog-release.json changelog-release.json create_release_pull_request.yml create_release_pull_request.yml
Codebase cunningly covered by count Shroud 🧛
Generated by :no_entry_sign: Danger