Visitar URL original
Add new runner variable `runner.arch` by fhammerl · Pull Request #12374 · github/docs · GitHub
The Wayback Machine - https://web.archive.org/web/20211202231743/https://github.com/github/docs/pull/12374
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new runner variable runner.arch #12374

Merged
merged 8 commits into from Dec 2, 2021
Merged

Add new runner variable runner.arch #12374

merged 8 commits into from Dec 2, 2021

Conversation

@fhammerl
Copy link
Contributor

@fhammerl fhammerl commented Nov 26, 2021

Why:

Adding runner.arch variable after actions/runner#1185 is merged.

What's being changed:

Context:

https://gha-docs-10389--add-runner-arc.herokuapp.com/en/actions/learn-github-actions/contexts#runner-context

Environment variable:

Check off the following:

  • I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
  • For content changes, I have completed the self-review checklist.
@mistaken-pull-closer
Copy link

@mistaken-pull-closer mistaken-pull-closer bot commented Nov 26, 2021

Thanks for your submission.

It appears that you've created a pull request using one of our repository's branches. Since this is
almost always a mistake, we're going to go ahead and close this. If it was intentional, please
let us know what you were intending and we can see about reopening it.

Thanks again!

Loading

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 26, 2021 •

Automatically generated comment ℹ️

This comment is automatically generated and will be overwritten every time changes are committed to this branch.

The table contains an overview of files in the content directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the data directory will not show up in this table.


Content directory changes

You may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.

Source Staging Production What Changed
content/actions/learn-github-actions/contexts.md Modified Original
content/actions/learn-github-actions/environment-variables.md Modified Original

Loading

Copy link

@ghost ghost left a comment

Duplicate of #

Loading

@ghost
Copy link

@ghost ghost commented Nov 26, 2021

Thanks for your submission.

It appears that you've created a pull request using one of our repository's branches. Since this is almost always a mistake, we're going to go ahead and close this. If it was intentional, please let us know what you were intending and we can see about reopening it.

Thanks again!

Loading

Copy link

@ghost ghost left a comment

Duplicate of #

Loading

@Wiatt99923
Copy link

@Wiatt99923 Wiatt99923 commented Nov 26, 2021

Loading

@ramyaparimi
Copy link
Collaborator

@ramyaparimi ramyaparimi commented Nov 29, 2021

@fhammerl
Thanks so much for opening a PR! I'll get this triaged for review ⚡

Loading

Copy link
Contributor

@lucascosti lucascosti left a comment

Thanks a lot for this PR, @fhammerl!

Before we merge it, I just wanted to double check: because these new variables are set by the runner app, I assume that this change isn't tied to specific GHES versions? i.e. a self-hosted runner attached to a GHES server will be able to use this environment variable after the runner app is next automatically updated on the runner machine, regardless of the GHES instance version?

Loading

@fhammerl
Copy link
Contributor Author

@fhammerl fhammerl commented Dec 1, 2021

Thanks a lot for this PR, @fhammerl!

Before we merge it, I just wanted to double check: because these new variables are set by the runner app, I assume that this change isn't tied to specific GHES versions? i.e. a self-hosted runner attached to a GHES server will be able to use this environment variable after the runner app is next automatically updated on the runner machine, regardless of the GHES instance version?

@lucascosti ☝️ that's correct, this is set in the runner. The change was shipped in runner v2.284.0. (afaik GHES 3.3 currently uses v2.283.3)
If a self-hosted runner (regardless of GHES or dotcom version) is that version or higher, runner.arch is available.

Loading

@ramyaparimi ramyaparimi removed the triage label Dec 1, 2021
@lucascosti
Copy link
Contributor

@lucascosti lucascosti commented Dec 2, 2021

afaik GHES 3.3 currently uses v2.283.3

ah, ok. In that case, I'll add some versioning to make this available to GHES versions 3.4 and above 👍

Loading

data/features/actions-runner-arch-envvars.yml Outdated Show resolved Hide resolved
Loading
data/features/actions-runner-arch-envvars.yml Outdated Show resolved Hide resolved
Loading
Copy link
Contributor

@martin389 martin389 left a comment

Looks good in staging: 👍

Loading

@lucascosti lucascosti merged commit bee380f into main Dec 2, 2021
29 checks passed
Loading
@lucascosti lucascosti deleted the add-runner-arch-var branch Dec 2, 2021
Docs team reviews automation moved this from Triage to Done Dec 2, 2021
@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Dec 2, 2021

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants