Skip to content

Commit

Permalink
DONT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Feb 20, 2024
1 parent 21a70f3 commit 2e30ac1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ export async function main(): Promise<void> {
return;
}

const cacheKey = await core.group("Getting cache key", getCacheKey);
core.startGroup("Getting cache key");
let cacheKey: string;
try {
cacheKey = await core.group("Getting cache key", getCacheKey);
core.endGroup();
} catch (err) {
core.endGroup();
core.setFailed(`Failed to get cache key: ${err.message}`);
return;
}

const cachePaths = await core.group("Getting cache paths", getCachePaths);

const cacheFound = await core.group("Restoring cache", async () => {
Expand Down

0 comments on commit 2e30ac1

Please sign in to comment.