mirror of https://github.com/actions/cache.git
build
parent
9fc411013e
commit
71a268f01a
|
@ -100111,7 +100111,7 @@ const canSaveToS3 = process.env["RUNS_ON_S3_BUCKET_CACHE"] !== undefined;
|
||||||
function restoreImpl(stateProvider, earlyExit) {
|
function restoreImpl(stateProvider, earlyExit) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
if (!utils.isCacheFeatureAvailable()) {
|
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||||
core.setOutput(constants_1.Outputs.CacheHit, "false");
|
core.setOutput(constants_1.Outputs.CacheHit, "false");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100111,7 +100111,7 @@ const canSaveToS3 = process.env["RUNS_ON_S3_BUCKET_CACHE"] !== undefined;
|
||||||
function restoreImpl(stateProvider, earlyExit) {
|
function restoreImpl(stateProvider, earlyExit) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
if (!utils.isCacheFeatureAvailable()) {
|
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||||
core.setOutput(constants_1.Outputs.CacheHit, "false");
|
core.setOutput(constants_1.Outputs.CacheHit, "false");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100116,7 +100116,7 @@ function saveImpl(stateProvider) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let cacheId = -1;
|
let cacheId = -1;
|
||||||
try {
|
try {
|
||||||
if (!utils.isCacheFeatureAvailable()) {
|
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!utils.isValidEvent()) {
|
if (!utils.isValidEvent()) {
|
||||||
|
|
|
@ -100116,7 +100116,7 @@ function saveImpl(stateProvider) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let cacheId = -1;
|
let cacheId = -1;
|
||||||
try {
|
try {
|
||||||
if (!utils.isCacheFeatureAvailable()) {
|
if (!canSaveToS3 && !utils.isCacheFeatureAvailable()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!utils.isValidEvent()) {
|
if (!utils.isValidEvent()) {
|
||||||
|
|
Loading…
Reference in New Issue