1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-18 09:37:54 +00:00

Add option to skip uploading of cache

This commit is contained in:
Edoardo Pirovano 2022-08-09 15:11:47 +01:00
parent f4278025ab
commit 015084af58
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
5 changed files with 17 additions and 1 deletions

View file

@ -2,7 +2,8 @@ export enum Inputs {
Key = "key",
Path = "path",
RestoreKeys = "restore-keys",
UploadChunkSize = "upload-chunk-size"
UploadChunkSize = "upload-chunk-size",
SkipUpload = "skip-upload"
}
export enum Outputs {

View file

@ -40,6 +40,12 @@ async function run(): Promise<void> {
return;
}
if (core.getBooleanInput(Inputs.SkipUpload)) {
core.info(
`Skipping upload of cache since the skip-upload input was set.`
);
}
const cachePaths = utils.getInputAsArray(Inputs.Path, {
required: true
});