Use env.RUNNER_ENVIRONMENT to check runner type#166
Use env.RUNNER_ENVIRONMENT to check runner type#166ajschmidt8 merged 1 commit intorapidsai:branch-23.12from
Conversation
Signed-off-by: Jordan Jacobelli <jjacobelli@nvidia.com>
ab852a0 to
f5c15e3
Compare
|
@jjacobelli it doesn't look like github-hosted runners set the Is this something we only do in our self-hosted runners, or did something about the github-hosted runners change? I thought the env context propagates to actions, but I could also be mistaken. |
|
Hey @trxcllnt, I just checked a workflow running on our runners and the variable is still defined: |
|
Ok, I'll change the checks to |
|
@jjacobelli It doesn't seem like |

Instead of checking if the runner name contains
linux-, we now check the value ofenv.RUNNER_ENVIRONMENT. This value should begithub-hostedfor GitHub runners andself-hostedfor RAPIDS runners.Test pipeline: https://github.com/rapidsai/devcontainers/actions/runs/6639045230?pr=166