parent
f26390261c
commit
40aa0be72e
5 changed files with 20 additions and 5 deletions
|
|
@ -16,7 +16,12 @@ const platform = os.platform()
|
||||||
let bazelOutputBase = core.getInput('output-base')
|
let bazelOutputBase = core.getInput('output-base')
|
||||||
if (!bazelOutputBase) {
|
if (!bazelOutputBase) {
|
||||||
if (platform === 'win32') {
|
if (platform === 'win32') {
|
||||||
|
// check if GITHUB_WORKSPACE starts with D:
|
||||||
|
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
|
||||||
bazelOutputBase = 'D:/_bazel'
|
bazelOutputBase = 'D:/_bazel'
|
||||||
|
} else {
|
||||||
|
bazelOutputBase = `C:/_bazel`
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bazelOutputBase = `${homeDir}/.bazel`
|
bazelOutputBase = `${homeDir}/.bazel`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
dist/main/index.js
vendored
5
dist/main/index.js
vendored
|
|
@ -22,7 +22,12 @@ const platform = os.platform()
|
||||||
let bazelOutputBase = core.getInput('output-base')
|
let bazelOutputBase = core.getInput('output-base')
|
||||||
if (!bazelOutputBase) {
|
if (!bazelOutputBase) {
|
||||||
if (platform === 'win32') {
|
if (platform === 'win32') {
|
||||||
|
// check if GITHUB_WORKSPACE starts with D:
|
||||||
|
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
|
||||||
bazelOutputBase = 'D:/_bazel'
|
bazelOutputBase = 'D:/_bazel'
|
||||||
|
} else {
|
||||||
|
bazelOutputBase = `C:/_bazel`
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bazelOutputBase = `${homeDir}/.bazel`
|
bazelOutputBase = `${homeDir}/.bazel`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
5
dist/post/index.js
vendored
5
dist/post/index.js
vendored
|
|
@ -22,7 +22,12 @@ const platform = os.platform()
|
||||||
let bazelOutputBase = core.getInput('output-base')
|
let bazelOutputBase = core.getInput('output-base')
|
||||||
if (!bazelOutputBase) {
|
if (!bazelOutputBase) {
|
||||||
if (platform === 'win32') {
|
if (platform === 'win32') {
|
||||||
|
// check if GITHUB_WORKSPACE starts with D:
|
||||||
|
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
|
||||||
bazelOutputBase = 'D:/_bazel'
|
bazelOutputBase = 'D:/_bazel'
|
||||||
|
} else {
|
||||||
|
bazelOutputBase = `C:/_bazel`
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bazelOutputBase = `${homeDir}/.bazel`
|
bazelOutputBase = `${homeDir}/.bazel`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue