maxheld83 / ghactions

GitHub actions for R and accompanying R package
https://www.maxheld.de/ghactions/
MIT License
169 stars 17 forks source link

share variables across jobs #336

Open maxheld83 opened 5 years ago

maxheld83 commented 5 years ago

azure has this

maxheld83 commented 5 years ago

Wrote to support:

Am I correct to assume that variables cannot be shared across jobs?

Say, I want to store a registry URL only once in my mail.yml, but then reuse it multiple times. Azure Pipelines offers this: variables in pipeline

From what I understand, GitHub Actions doesn't do this, and I can only pass variables into steps (if they are actions) as jobs.<job_id>.steps.with, but not into other jobs.

This is a bit limiting, especially for cross-platform builds.