Interview Prep/CI/CD/GitHub Actions

How do you share data from one workflow to another?

IntermediateConceptGitHub Actions
Answer

Within one run, use needs outputs and artifacts. Across workflows: a reusable workflow returns outputs; workflow_run plus actions/download-artifact (with run-id and a token) fetches artifacts from a different run; and repository_dispatch or workflow_dispatch calls can carry a payload or inputs. For long-lived data, publish to a package registry or object store.

All CI/CD questions

More on GitHub Actions