code-with-the-italians / bundel

A digital wellbeing Android app that helps minimise distractions when you don't want them. Watch us live code it at https://cwti.link/twitch or catch up on YouTube at https://cwti.link/yt. Merch available at https://cwti.link/spaccio.
https://codewiththeitalians.it
Apache License 2.0
288 stars 26 forks source link

Add workflow to periodically check for dependency updates #21

Closed hvisser closed 2 years ago

hvisser commented 2 years ago

This adds a workflow to run ./gradlew versionCatalogUpdate and, if the catalog is updated, create a PR with the diffs. The workflow is scheduled to run once a week, and can be triggered manually too.

The heavy lifting is in the peter-evans/create-pull-request action that will manage creating and updating the PR when changes are detected. Because during the build gradlew is also changed, that change is reverted before creating the PR.

The PR does not give a comprehensive description of the changed dependencies, it merely produces a new branch and a diff. The created branch can be used to verify the dependency updates or do adjustments before merging, mainly serving as a reminder that updates are available.

The initial run will update the formatting of the catalog so that will be a bit noisy :)