ADR Suggestion Modify Composite Actions Location for ADR #42
#46
AndrewSazonov
started this conversation in
Ideas
Replies: 2 comments 6 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.
3 replies
-
|
How do you test changes to composite actions before they propagate to all projects? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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