RUNNER_NAME
and /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
are incorrectly documented
#37046
Open
1 task done
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
What part(s) of the article would you like to see updated?
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
RUNNER_NAME
Hosted Agent
https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#list-jobs-for-a-workflow-run
example response
https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context
runner.name
Additional information
Between https://github.com/check-spelling-sandbox/check-spelling/actions/runs/13813316120 and https://github.com/check-spelling-sandbox/check-spelling/actions/runs/13835035831 the behavior of
RUNNER_NAME
and the github runner api changed.In the first run,
RUNNER_NAME
andrunner_name
had matching behavior. In the second run,RUNNER_NAME
is equivalent torunner_name
(with spaces changed to_
...) +"_"
+runner_id
.Note that there is no id property in the
runner
context and that the runner context name now appears to include a runner id (at least for github hosted runners).The text was updated successfully, but these errors were encountered: