Change condition

This commit is contained in:
panticmilos 2022-08-10 20:44:17 +02:00
parent 61dd67fbf5
commit 8f4adae408
2 changed files with 7 additions and 2 deletions

4
dist/setup/index.js vendored
View File

@ -63150,7 +63150,9 @@ function run() {
const cache = core.getBooleanInput('cache');
core.info(`Setup go version spec ${versionSpec}`);
let arch = core.getInput('architecture');
arch = arch ? arch : os_1.default.arch();
if (!arch) {
arch = os_1.default.arch();
}
if (versionSpec) {
let token = core.getInput('token');
let auth = !token || cache_utils_1.isGhes() ? undefined : `token ${token}`;

View File

@ -21,7 +21,10 @@ export async function run() {
core.info(`Setup go version spec ${versionSpec}`);
let arch = core.getInput('architecture');
arch = arch ? arch : os.arch();
if (!arch) {
arch = os.arch();
}
if (versionSpec) {
let token = core.getInput('token');