mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 16:53:57 +08:00
Improve cache key info logging for restore key
This commit is contained in:
parent
4134e6de47
commit
1eade9d5b9
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ async function run(): Promise<void> {
|
|||
const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
|
||||
utils.setCacheHitOutput(isExactKeyMatch);
|
||||
|
||||
core.info(`Cache restored from key: ${cacheKey}`);
|
||||
core.info(`Cache restored from ${isExactKeyMatch ? '' : 'restore '}key: ${cacheKey}`);
|
||||
} catch (error) {
|
||||
if (error.name === cache.ValidationError.name) {
|
||||
throw error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue