lorenzwalthert / precommit

pre-commit hooks for R projects
https://lorenzwalthert.github.io/precommit/
GNU General Public License v3.0
253 stars 48 forks source link

Automate GitHub releases #522

Open lorenzwalthert opened 1 year ago

lorenzwalthert commented 1 year ago
averissimo commented 2 weeks ago

I think that detecting hook-dependency-update merges to main would be easy and transparent in a github action

There are some workflows that automatically bump R package versions that we could in tandem, so that both R version and tag creation was automated every time that branch is merged to main

This could be skipped with keywords on PR title (such as [skip-tag]). I could try to set up POC on a forked repository to better evaluate.

tags must be on main branch to be recognised with pre-commit autoupdate. Does it work if we tag on branch hook-dependency-update and then merge to main?

This is an easy test for the next merge. I think that tags are not branch-context-dependent, but I'd have to a have a thorough look at the git documentation.

lorenzwalthert commented 2 weeks ago

There is already a template: https://github.com/lorenzwalthert/precommit/blob/main/.github/workflows/hook-release.yml.

Also, the functionality is already in release_gh() function. It contains multiple steps. If you want ot have a go, it would be appreciated. 👍