Fixes #1776
Document the runner context and merge with the environment variables section #1777
msrd0/forgejo-docs:runner-context into next Thanks a lot for your PR! I've added some comments for your consideration.
@ -1384,0 +1393,4 @@
| Name | Environment Variable | Description |
| ------------------- | -------------------- | ----------- |
| `runner.os` | `RUNNER_OS` | The operating system of the runner, e.g. `Linux` |
| `runner.arch` | `RUNNER_ARCH` | The cpu architecture of the runner |
"CPU" instead of "cpu".
It might make sense to include the possible values or at least the naming scheme that is being used. Unfortunately, it's not defined for any other platforms and Forgejo Runner returns whatever docker info spits out which isn't good. 🤔
@ -1384,0 +1394,4 @@
| ------------------- | -------------------- | ----------- |
| `runner.os` | `RUNNER_OS` | The operating system of the runner, e.g. `Linux` |
| `runner.arch` | `RUNNER_ARCH` | The cpu architecture of the runner |
| `runner.temp` | `RUNNER_TMP` | This is a temporary directory provided by the runner. It's hardcoded to `/tmp`. |
Please drop "It's hardcoded to /tmp." That's an implementation detail and can change.
Thanks for taking this on. Please check the Actions results on the PR in addition to the review comments, as the docs linter has a couple small complaints that need to be resolved. 🙂
2550cf3c02
0ddde7593f
@mfenniak Feel free to run whatever javascript based pretty-printer the actions complain about on this PR. I am not going to bother with anything javascript, and I am not manually going to add that many spaces for a pointless alignment of the last | of the table.
You can just copy and paste the output from the linter failure and remove the leading diff marks +.
Preview ready: https://forgejo.codeberg.page/@docs_pull_1777/
Archived
Archived
Archived
Archived
Archived
Archived
Archived
Archived
Archived
Archived
Archived
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?