$RUNNER_OS/etc environment variables not documented (GitHub Actions)
#6127
Comments
|
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
Thanks for opening an issue @jmarshall and looking for related issues |
|
Thanks for reviewing docs related to my workflow api |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Hi there! Thanks for pointing this out. We should add that environment variable to https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables as you suggest. You or anyone else is welcome to open a PR doing so! |
|
Only GitHub staff are in a position to confirm which of the seven Note that only three of the corresponding |


What article on docs.github.com is affected?
https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
What part(s) of the article would you like to see updated?
This StackOverflow answer claims that GitHub Actions workflow steps are provided with an environment variable
$RUNNER_OSthat contains the value of${{ runner.os }}.This is confirmed by a simple workflow that just prints out
env | sort:It also appears to be confirmed by the runner source code; see https://github.com/actions/runner/blob/419ed24c1ee8c70eeb096570980e700e833f81f6/src/Runner.Worker/RunnerContext.cs#L13
The affected web page lists environment variables available to workflow steps, including
$CIand many variables of the form$GITHUB_xyz. If (some of) these$RUNNER_xyzenvironment variables are also supported for use by workflow steps, it would be useful if they were added to this listing.Additional information
This is somewhat related to the previously-reported #2031, but that issue was interpreted as being about the context expression
${{ runner.os }}rather than the environment variable$RUNNER_OS.The text was updated successfully, but these errors were encountered: