3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-23 03:45:31 +00:00

adding outputs

This commit is contained in:
Tanuj Kumar Mishra 2022-12-07 17:07:30 +00:00
parent 66ef8a0951
commit a5fbe79711
6 changed files with 19 additions and 2 deletions

View file

@ -6,7 +6,9 @@ export enum Inputs {
}
export enum Outputs {
CacheHit = "cache-hit"
CacheHit = "cache-hit",
Key = "key",
MatchedKey = "matched-key"
}
export enum State {

View file

@ -5,7 +5,9 @@ import { Events, Inputs, Outputs, State } from "./constants";
import { IStateProvider } from "./stateProvider";
import * as utils from "./utils/actionUtils";
async function restoreImpl(stateProvider: IStateProvider): Promise<string | undefined> {
async function restoreImpl(
stateProvider: IStateProvider
): Promise<string | undefined> {
try {
if (!utils.isCacheFeatureAvailable()) {
utils.setCacheHitOutput(false);