The documentation of the runner context is missing from https://forgejo.org/docs/next/user/actions/reference/#contexts. I could confirm that at least ${{runner.os}} and ${{runner.arch}} are set. Unfortunately I was unable to navigate the code of the runner beyond map[string]any so I don't know which other variables exist and as such am unable to add the context to the documentation myself.
runner context documentation missing #1776
Closed
opened 2026年02月09日 21:35:39 +01:00 by msrd0
·
2 comments
msrd0
commented 2026年02月09日 21:35:39 +01:00
The documentation of the `runner` context is missing from https://forgejo.org/docs/next/user/actions/reference/#contexts. I could confirm that at least `${{runner.os}}` and `${{runner.arch}}` are set. Unfortunately I was unable to navigate the code of the runner beyond `map[string]any` so I don't know which other variables exist and as such am unable to add the context to the documentation myself.
mfenniak
commented 2026年02月09日 21:40:38 +01:00
That's a good note on a missing context, thanks for pointing it out. Here's the code that creates the runner context if you're able to invest a little time in the documentation:
code.forgejo.org/forgejo/runner@0f65ceb2be/act/container/host_environment.go (L480-L487)
That's a good note on a missing context, thanks for pointing it out. Here's the code that creates the `runner` context if you're able to invest a little time in the documentation:
https://code.forgejo.org/forgejo/runner/src/commit/0f65ceb2bea5d0a9c35e8230be5ce33fcb266770/act/container/linux_container_environment_extensions.go#L79-L86
https://code.forgejo.org/forgejo/runner/src/commit/0f65ceb2bea5d0a9c35e8230be5ce33fcb266770/act/container/host_environment.go#L480-L487
msrd0
commented 2026年02月09日 22:05:35 +01:00
Thanks for pointing me in the right direction :) I have opened a PR: #1777
Thanks for pointing me in the right direction :) I have opened a PR: #1777
mfenniak
closed this issue 2026年02月15日 23:54:20 +01:00
mfenniak
referenced this issue from a commit 2026年02月15日 23:54:23 +01:00
Sign in to join this conversation.
No Branch/Tag specified
Labels
Clear labels
404
Broken links or missing content
backport/v1.19
Changes which should be backported to the v1.19 docs
Archived
backport/v1.20
Changes which should be backported to the v1.20 docs
Archived
backport/v1.21
Changes which should be backported to the v1.21 docs
Archived
backport/v10.0
Automated backport to v10.0
Archived
backport/v11.0
Automated backport to v11.0
backport/v12.0
Automated backport to v12.0
Archived
backport/v13.0
Automated backport to v13.0
Archived
backport/v14.0
Automated backport to v14.0
Archived
backport/v15.0
Automated backport to v15.0
backport/v16.0
Automated backport to v16.0
backport/v7.0
Automated backport to the v7.0 docs
Archived
backport/v8.0
Automated backport to the v8.0 docs
Archived
backport/v9.0
Automated backport to the v9.0 docs
Archived
good first issue
This issue is suitable for "drive-by contributors" wanting to contribute for the first time, and fixing it should be straightforward.
meta
Tooling and processes for maintaining the docs
new docs
Content to be added to the documentation
Archived
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
No labels
404
backport/v1.19
backport/v1.20
backport/v1.21
backport/v10.0
backport/v11.0
backport/v12.0
backport/v13.0
backport/v14.0
backport/v15.0
backport/v16.0
backport/v7.0
backport/v8.0
backport/v9.0
good first issue
meta
new docs
User research - Accessibility
User research - Blocked
User research - Community
User research - Config (instance)
User research - Errors
User research - Filters
User research - Future backlog
User research - Git workflow
User research - Labels
User research - Moderation
User research - Needs input
User research - Notifications/Dashboard
User research - Rendering
User research - Repo creation
User research - Repo units
User research - Security
User research - Settings (in-app)
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
forgejo/docs#1776
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?