Skip to content

Commit

Permalink
info
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 31, 2024
1 parent c77cd78 commit ddb8388
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ jobs:
repository: bazelbuild/examples
sparse-checkout: java-maven
sparse-checkout-cone-mode: false
- run: mv java-maven/* .
- uses: actions/checkout@v4
with:
path: java-maven/setup-bazel
path: setup-bazel
- run: ls -l
- uses: ./java-maven/setup-bazel/
- uses: ./setup-bazel/
with:
bazelisk-cache: true
bazelisk-version: 1.x
Expand Down
6 changes: 3 additions & 3 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96917,7 +96917,7 @@ async function setupBazelisk() {
core.startGroup('Setup Bazelisk')
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
if (toolPath) {
core.debug(`Found in cache @ ${toolPath}`)
core.info(`Found in cache @ ${toolPath}`)
} else {
toolPath = await downloadBazelisk()
}
Expand Down Expand Up @@ -96968,13 +96968,13 @@ async function downloadBazelisk() {
}

const url = asset.browser_download_url
core.debug(`Downloading from ${url}`)
core.info(`Downloading from ${url}`)
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)

core.debug('Adding to the cache...')
fs.chmodSync(downloadPath, '755')
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
core.debug(`Successfully cached bazelisk to ${cachePath}`)
core.info(`Successfully cached bazelisk to ${cachePath}`)

return cachePath
}
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function setupBazelisk() {
core.startGroup('Setup Bazelisk')
let toolPath = tc.find('bazelisk', config.bazeliskVersion)
if (toolPath) {
core.debug(`Found in cache @ ${toolPath}`)
core.info(`Found in cache @ ${toolPath}`)
} else {
toolPath = await downloadBazelisk()
}
Expand Down Expand Up @@ -92,13 +92,13 @@ async function downloadBazelisk() {
}

const url = asset.browser_download_url
core.debug(`Downloading from ${url}`)
core.info(`Downloading from ${url}`)
const downloadPath = await tc.downloadTool(url, undefined, `token ${token}`)

core.debug('Adding to the cache...')
fs.chmodSync(downloadPath, '755')
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
core.debug(`Successfully cached bazelisk to ${cachePath}`)
core.info(`Successfully cached bazelisk to ${cachePath}`)

return cachePath
}
Expand Down

0 comments on commit ddb8388

Please sign in to comment.