ADR Suggestion Modify Composite Actions Location for ADR #42
#46
Replies: 3 comments 7 replies
-
|
Is this a real improvement over a separate repo with composite actions, though? I do not think so. With a centralized easyscience/actions repo at a pinned version (@v1), we get:
With embedded-in-templates approach, you get:
|
Beta Was this translation helpful? Give feedback.
-
|
How do you test changes to composite actions before they propagate to all projects? |
Beta Was this translation helpful? Give feedback.
-
|
Hmm, one added benefit of using the copier approach, is that you have the relevant composite action in your own repo, making inspecting it easier/simpler when viewing your own code (I hate having to open multiple repos just to understand my own code). But it also seems like you reached an agreement on using the copier approach, so I think it's safe to say we roll with that and consider this discussion finished, close it and amend the aforementioned ADR? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Associated ADR: #42 Using Composite Actions for Repeated GitHub Workflow Tasks
As part of the ongoing transition to Copier-based templates for EasyScience projects, I propose a small adjustment to ADR #42 regarding where composite GitHub Actions are stored.
Proposed Change
Instead of keeping composite actions in a separate repository (
easyscience/github, later agreed to be renamed toeasyscience/actions), all composite actions should live inside the Copier templates repository, specifically undereasyscience/templates/.github/actions/along with the full workflow templates ineasyscience/templates/.github/workflows/. In practice, this is already how things are being implemented.Motivation
Storing composite actions directly inside the shared templates brings several benefits:
Updates to composite actions (e.g. action changes, version bumps, bug fixes) are applied by running copier update (or the associated Pixi task). This avoids silent updates and gives each project explicit control over when CI changes are adopted.
No need to maintain or version a separate
easyscience/actionsrepository, reducing organizational and maintenance overhead.Since workflows themselves are defined via Copier templates, keeping the composite actions alongside them ensures consistency.
Beta Was this translation helpful? Give feedback.
All reactions