GitHub Actions allows to trigger a workflow from another workflow using the workflow_run
event as per this documentation: Events that trigger workflows - Webhook Events - workflow_run
This works fine. However, for the situations I am planning to use this all workflows except for the first one would likely rely on some information about the previous workflow... E.g. certain strings / conditionals / etc...
How can we pass data from one workflow to another?
Is there some reference similar to the needs.jobs.<job_id>.*
which can be used to pass data from one job to another?
NOTE: Using an artifact built in workflow A from within workflow B is a different question (asked and answered here), which can be solved by using the following action: dawidd6/action-download-artifact@v2