-
Notifications
You must be signed in to change notification settings - Fork 956
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 list of runner labels to runner context #821
Comments
We also need to know the current runner ID. |
+1 for having a runner id variable exposed Would be super useful for conditional flows depending on the machine ie. Ref: https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context |
Had to create workaround for this; https://github.com/marketplace/actions/runner-label-resolver, but realise that it's not reasonable to give org level access for access-token just to get runner labels... Hopefully we could get this right. |
Thank you for your interest in the runner application and taking the time to provide your valuable feedback. We kindly ask you to redirect this feedback to the GitHub Community Support Forum which our team actively monitors and would be a better place to start a discussion for new feature requests in GitHub Actions. For more information on this policy please read our contribution guidelines. 😃 |
Describe the enhancement
Add
runner.labels
variable to the runner context which will list all the runner labels.Code Snippet
Runner labels could be accessed from the workflow via
${{ runner.labels }}
.Additional information
This might be useful to avoid some build steps on self-hosted runners with some pre-installed tools which would normally be installed as a build step on other runners.
The text was updated successfully, but these errors were encountered: