Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate GitHub releases #522

Open
lorenzwalthert opened this issue Oct 17, 2023 · 2 comments
Open

Automate GitHub releases #522

lorenzwalthert opened this issue Oct 17, 2023 · 2 comments

Comments

@lorenzwalthert
Copy link
Owner

lorenzwalthert commented Oct 17, 2023

  • could use a post merge hook or GitHub Action when PR from hook-dependency-update was merged into main. But probably easier is just as part of the hook dependency update. Also belongs together semantically.
  • release_gh() works locally currently.
  • Deals with {git2r} for committing things, although the create-pr action could take care of that.
  • 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?
@averissimo
Copy link

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
Copy link
Owner Author

lorenzwalthert commented Nov 5, 2024

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants