runner workspace
The directory on a runner where the repository is checked out and where a job's steps work by default.
In more detail
Its path is exported in the GITHUB_WORKSPACE variable. All steps of one job share it, but another job gets a different machine with a different, empty workspace. Never upload the whole workspace as an artifact.
Related terms
- runner — A machine running the runner application that picks up a queued job, runs its steps and reports the result.
- checkout action — The official action, actions/checkout, that copies the repository onto the runner at the commit being built.
- default environment variables — Variables such as GITHUB_SHA, GITHUB_REF and RUNNER_OS that the runner sets for every step before your commands run.
Taught in
- Runners: Where Code Executes — Continuous Integration & Continuous Delivery Pipelines
- Passing Data Between Jobs: Artifacts — Continuous Integration & Continuous Delivery Pipelines
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- The Workflow That Ran On A Stranger's Pull Request — GitHub Actions (GH-200) Exam Prep
- action.yml: Inputs, Outputs, Runs And Branding — GitHub Actions (GH-200) Exam Prep
- Composite And Docker Actions: Troubleshooting And Immutable Releases — GitHub Actions (GH-200) Exam Prep