Skip to content

Commit

Permalink
update: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
asjdf committed Jul 22, 2024
1 parent d249c53 commit 347f748
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
with:
go-url: 'https://github.com/actions/go-versions/releases/download/1.22.5-9771837482/go-1.22.5-linux-x64.tar.gz'
go-version: 1.22.5
cache-sdk: 'false'
cache-sdk: false

- name: verify go
run: __tests__/verify-go.sh "1.22.5"
Expand Down
15 changes: 9 additions & 6 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88283,12 +88283,15 @@ function getGo(goUrl_1, versionSpec_1, checkLatest_1, auth_1) {
core.info(`Failed to resolve version ${versionSpec} from manifest`);
}
}
// check cache
const toolPath = tc.find('go', versionSpec, arch);
// If not found in cache, download
if (toolPath) {
core.info(`Found in cache @ ${toolPath}`);
return toolPath;
const cacheSDK = core.getBooleanInput('cache-sdk');
if (cacheSDK) {
// check cache
const toolPath = tc.find('go', versionSpec, arch);
// If not found in cache, download
if (toolPath) {
core.info(`Found in cache @ ${toolPath}`);
return toolPath;
}
}
core.info(`Attempting to download ${versionSpec}...`);
let downloadPath = '';
Expand Down

0 comments on commit 347f748

Please sign in to comment.