Compare commits

..

2 Commits

Author SHA1 Message Date
Sergey Dolin
80177b7a50
Merge b90ed1bf68 into db8764c1e2 2023-07-25 18:07:26 +00:00
Sergey Dolin
b90ed1bf68 cache-restore-only 2023-07-25 19:29:37 +02:00
4 changed files with 5 additions and 11 deletions

View File

@ -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
View File

@ -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');

View File

@ -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 {

View File

@ -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');