workflowA generates artifacts which are needed to be consumed by workflowB.
Both workflows are triggered manually with workflow_dispatch
, and I prefer not to use workflow_call
or workflow_run
events (as I do not want that workflowB will be triggered immediately once workflowA finishes).
For artifacts download I’m using actions/download-artifact@v4
.
In order to reference the artifacts generated by workflowA I need the run-id
, see download-artifact docs.
I would like that workflowB to pick up the run-id
automatically, rather than manually entered it if defined as inputs to workflowB.
Is there a way in GitHub Actions to support that?
For example, is there a way to share outputs and/or environment variables (env) across workflows?
Any creative solutions would be much appreciated !