MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / github_actions_host_work_path

Function github_actions_host_work_path

e2e/rust/tests/driver_config_volume.rs:440–448  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

438}
439
440fn github_actions_host_work_path(path: &Path) -> Option<PathBuf> {
441 if std::env::var("GITHUB_ACTIONS").ok().as_deref() != Some("true") {
442 return None;
443 }
444
445 let relative = path.strip_prefix("/__w").ok()?;
446 let mapped = Path::new("/home/runner/_work").join(relative);
447 mapped.exists().then_some(mapped)
448}

Callers 1

bind_mount_source_pathFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected