mirror of
https://github.com/actions/setup-go.git
synced 2026-07-02 13:01:41 +00:00
Compare commits
2 Commits
b917fb5fcb
...
80177b7a50
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80177b7a50 | ||
|
|
b90ed1bf68 |
1
dist/cache-save/index.js
vendored
1
dist/cache-save/index.js
vendored
@ -58629,7 +58629,6 @@ var State;
|
||||
State["CacheMatchedKey"] = "CACHE_RESULT";
|
||||
State["CacheRestoreOnly"] = "CACHE_RESTORE_ONLY";
|
||||
State["True"] = "true";
|
||||
State["False"] = "false";
|
||||
})(State = exports.State || (exports.State = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
||||
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
@ -61294,7 +61294,6 @@ var State;
|
||||
State["CacheMatchedKey"] = "CACHE_RESULT";
|
||||
State["CacheRestoreOnly"] = "CACHE_RESTORE_ONLY";
|
||||
State["True"] = "true";
|
||||
State["False"] = "false";
|
||||
})(State = exports.State || (exports.State = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
@ -61731,8 +61730,8 @@ function run() {
|
||||
core.debug(`add bin ${added}`);
|
||||
const goPath = yield io.which('go');
|
||||
const goVersion = (child_process_1.default.execSync(`${goPath} version`) || '').toString();
|
||||
const cacheRestoreOnly = core.getBooleanInput('cache-restore-only');
|
||||
core.saveState(constants_1.State.CacheRestoreOnly, cacheRestoreOnly ? constants_1.State.True : constants_1.State.False);
|
||||
const cacheRestoreOnly = core.getBooleanInput('cache-dependency-path');
|
||||
core.saveState(constants_1.State.CacheRestoreOnly, cacheRestoreOnly ? constants_1.State.True : '');
|
||||
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
||||
const packageManager = 'default';
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||
|
||||
@ -2,8 +2,7 @@ export enum State {
|
||||
CachePrimaryKey = 'CACHE_KEY',
|
||||
CacheMatchedKey = 'CACHE_RESULT',
|
||||
CacheRestoreOnly = 'CACHE_RESTORE_ONLY',
|
||||
True = 'true',
|
||||
False = 'false'
|
||||
True = 'true'
|
||||
}
|
||||
|
||||
export enum Outputs {
|
||||
|
||||
@ -65,11 +65,8 @@ export async function run() {
|
||||
const goPath = await io.which('go');
|
||||
const goVersion = (cp.execSync(`${goPath} version`) || '').toString();
|
||||
|
||||
const cacheRestoreOnly = core.getBooleanInput('cache-restore-only');
|
||||
core.saveState(
|
||||
State.CacheRestoreOnly,
|
||||
cacheRestoreOnly ? State.True : State.False
|
||||
);
|
||||
const cacheRestoreOnly = core.getBooleanInput('cache-dependency-path');
|
||||
core.saveState(State.CacheRestoreOnly, cacheRestoreOnly ? State.True : '');
|
||||
if (cache && isCacheFeatureAvailable()) {
|
||||
const packageManager = 'default';
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user