RamblingCookieMonster / BuildHelpers

Helper functions for PowerShell CI/CD scenarios
MIT License
214 stars 47 forks source link

Include RepoRoot as a BH variable #127

Open fgodskesen opened 3 years ago

fgodskesen commented 3 years ago

we have our internal modules in a monorepo, with shared build scripts. I think it would be useful to have a value included in the buildenv, e.g.
$ENV:BHRepoRoot = git rev-parse --show-toplevel

This way we can reference relative paths within the repo.