Release 0.18.0
This commit is contained in:
parent
b607b8f591
commit
083175551c
7 changed files with 30 additions and 21 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
|
|
@ -11,6 +11,7 @@ const core = __nccwpck_require__(37484)
|
|||
const github = __nccwpck_require__(93228)
|
||||
|
||||
const bazeliskVersion = core.getInput('bazelisk-version')
|
||||
const cacheSave = core.getBooleanInput('cache-save')
|
||||
const cacheVersion = core.getInput('cache-version')
|
||||
const moduleRoot = core.getInput('module-root')
|
||||
|
||||
|
|
@ -143,6 +144,7 @@ core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
|
|||
|
||||
module.exports = {
|
||||
baseCacheKey,
|
||||
cacheSave,
|
||||
bazeliskCache: {
|
||||
enabled: core.getBooleanInput('bazelisk-cache'),
|
||||
files: [`${moduleRoot}/.bazelversion`],
|
||||
|
|
|
|||
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
7
dist/post/index.js
vendored
7
dist/post/index.js
vendored
|
|
@ -11,6 +11,7 @@ const core = __nccwpck_require__(37484)
|
|||
const github = __nccwpck_require__(93228)
|
||||
|
||||
const bazeliskVersion = core.getInput('bazelisk-version')
|
||||
const cacheSave = core.getBooleanInput('cache-save')
|
||||
const cacheVersion = core.getInput('cache-version')
|
||||
const moduleRoot = core.getInput('module-root')
|
||||
|
||||
|
|
@ -143,6 +144,7 @@ core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
|
|||
|
||||
module.exports = {
|
||||
baseCacheKey,
|
||||
cacheSave,
|
||||
bazeliskCache: {
|
||||
enabled: core.getBooleanInput('bazelisk-cache'),
|
||||
files: [`${moduleRoot}/.bazelversion`],
|
||||
|
|
@ -103012,6 +103014,11 @@ async function run() {
|
|||
}
|
||||
|
||||
async function saveCaches() {
|
||||
if (!config.cacheSave) {
|
||||
core.info('Cache saving is disabled (cache-save: false)')
|
||||
return
|
||||
}
|
||||
|
||||
await saveCache(config.bazeliskCache)
|
||||
await saveCache(config.diskCache)
|
||||
await saveCache(config.repositoryCache)
|
||||
|
|
|
|||
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