Which context property identifies the operating system of the runner during a workflow run?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The 'runner' context is the machine's info card — runner.os tells you whether you're on Linux, Windows, or macOS.
Full explanation below image
Full Explanation
The 'runner' context provides information about the runner machine: 'runner.os' returns 'Linux', 'Windows', or 'macOS'. Other runner context properties include 'runner.arch' (X86, X64, ARM, ARM64), 'runner.name' (runner's configured name), 'runner.temp' (temporary directory), and 'runner.tool_cache' (tool installation directory). The RUNNER_OS environment variable also exists and has the same value, but 'env.RUNNER_OS' is redundant — you'd use '${{ runner.os }}' in expressions or '$RUNNER_OS' in shell commands. 'github.os' and 'system.os' don't exist.