cookie icon indicating copy to clipboard operation
cookie copied to clipboard

Action to update from this package template

Open nstarman opened this issue 1 year ago • 5 comments

It would be great if there were an Action, like dependabot, for updating a repo that uses this template. E.g. https://github.com/OpenAstronomy/packaging-guide/blob/main/%7B%7B%20cookiecutter.package_name%20%7D%7D/.github/workflows/sub_package_update.yml

nstarman avatar May 20 '24 15:05 nstarman

I've historically favored using repo-review over using updaters (but we do support two, crust and copier). It would be pretty easy to add it to a workflow, though (minus maybe the part about setting it up to auto-run CI on the PR it makes, haven't worked out the setup of that yet).

henryiii avatar May 20 '24 16:05 henryiii

I wonder if there's a way to detect cruft, then include that only if you made it with cruft? I think that would work as-is here as long as you used crust.

henryiii avatar May 20 '24 16:05 henryiii

Looks like no: https://github.com/cruft/cruft/issues/143

henryiii avatar May 20 '24 16:05 henryiii

(This might be a good "checkbox" feature ;) )

henryiii avatar May 20 '24 16:05 henryiii

I personally prefer copier and posted the cruft link as an example, though I suppose adding this update feature would necessitate supporting both.

nstarman avatar May 20 '24 18:05 nstarman