mirror of
https://github.com/actions/setup-go.git
synced 2025-06-30 13:13:43 +00:00
cache-restore-only
This commit is contained in:
parent
db8764c1e2
commit
28cfea2580
6 changed files with 30 additions and 1 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -61292,6 +61292,9 @@ var State;
|
|||
(function (State) {
|
||||
State["CachePrimaryKey"] = "CACHE_KEY";
|
||||
State["CacheMatchedKey"] = "CACHE_RESULT";
|
||||
State["CacheRestoreOnly"] = "CACHE_RESTORE_ONLY";
|
||||
State["True"] = "true";
|
||||
State["False"] = "false";
|
||||
})(State = exports.State || (exports.State = {}));
|
||||
var Outputs;
|
||||
(function (Outputs) {
|
||||
|
@ -61690,6 +61693,7 @@ const cache_utils_1 = __nccwpck_require__(1678);
|
|||
const child_process_1 = __importDefault(__nccwpck_require__(2081));
|
||||
const fs_1 = __importDefault(__nccwpck_require__(7147));
|
||||
const os_1 = __importDefault(__nccwpck_require__(2037));
|
||||
const constants_1 = __nccwpck_require__(9042);
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
|
@ -61727,6 +61731,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);
|
||||
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
|
||||
const packageManager = 'default';
|
||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue