Interview Prep/GitHub Actions/Expressions, Outputs, Matrix & Conditions

`$GITHUB_ENV` value set in the build job is empty in the deploy job.

BeginnerTroubleshootingExpressions, Outputs, Matrix & Conditions
Answer

Likely causes → GITHUB_ENV is per job; jobs run on different runners.

Diagnose → Check job boundaries.

Fix → Use job outputs and needs, or an artifact.

Prevent → Draw the job graph and mark how data crosses each edge.

All GitHub Actions questions Roadmap: GitHub Actions

More on Expressions, Outputs, Matrix & Conditions