mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-15 14:54:09 +02:00
Enable caching by default with default input (#332)
This commit is contained in:
parent
6b848af622
commit
c51a720768
9 changed files with 167 additions and 6269 deletions
|
@ -23,7 +23,7 @@ export async function run() {
|
|||
if (typeof error === 'string') {
|
||||
message = error;
|
||||
}
|
||||
core.setFailed(message);
|
||||
core.warning(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,13 @@ const cachePackages = async () => {
|
|||
);
|
||||
}
|
||||
|
||||
if (!primaryKey) {
|
||||
core.info(
|
||||
'Primary key was not generated. Please check the log messages above for more errors or information'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (primaryKey === state) {
|
||||
core.info(
|
||||
`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue