use GITHUB_WORKSPACE as default download dir
This commit is contained in:
1 parent
7262d472fe
commit
e7ddf2aea8
2 files changed
+10
-1
No files matched your search
@@ -26,3 +26,11 @@ export function isGhes(): boolean {
|
||||
)
|
||||
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM'
|
||||
}
|
||||
|
||||
export function getGitHubWorkspaceDir(): string {
|
||||
const ghWorkspaceDir = process.env['GITHUB_WORKSPACE']
|
||||
if (!ghWorkspaceDir) {
|
||||
throw new Error('Unable to get the GITHUB_WORKSPACE env variable')
|
||||
}
|
||||
return ghWorkspaceDir
|
||||
}
|
||||
Reference in new issue
Block a user