mirror of
https://github.com/actions/setup-go.git
synced 2025-08-19 07:05:08 +00:00
Change condition
This commit is contained in:
parent
61dd67fbf5
commit
8f4adae408
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -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}`;
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user