android-templates icon indicating copy to clipboard operation
android-templates copied to clipboard

[#525] 2/2 - Reuse the "nimblehq/github-actions-workflows/create_release_pr" workflow to automate Release PR creating

Open luongvo opened this issue 1 year ago • 1 comments

https://github.com/nimblehq/android-templates/issues/525

What happened 👀

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

luongvo avatar Nov 24 '23 04:11 luongvo

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

github-actions[bot] avatar Nov 24 '23 04:11 github-actions[bot]