Open jbusecke opened 1 year ago
This could be achieved with conditionals in the workflow file (and no changes needed to the action). Or it could be a PR to the action. Either seems doable.
I would think the first option is more flexible right now? I guess we really need some more users of the action to see how we might properly generalize this?
I would think the first option is more flexible right now?
Agreed. A relatively manageable path forward would be to use a github workflow step that conditionally exports either env vars (or workflow step outputs) based on the github event type, which can then be inserted into the pangeo-forge-runner JSON config.
In leap-stc/data-management#33, I currently have the following parts of this working:
Push to main:
PR:
We are currently building the full recipe for every commit (if a label is set).
I think we should have some things set in two different config jsons based on the event type:
leap-persistent-ro
for each recipe and subfolders for each action runleap-scratch
)