File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-actions.warp-cache" ,
3
- "version" : " 1.4.1 " ,
3
+ "version" : " 1.4.3 " ,
4
4
"preview" : true ,
5
5
"description" : " Github action to use WarpBuild's in-house cache offering" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change @@ -123,10 +123,11 @@ export async function restoreCache(
123
123
)
124
124
core . debug ( `Archive Path: ${ archivePath } ` )
125
125
126
- let cacheKey = cacheEntry ?. cache_entry ?. cache_user_given_key ?? primaryKey
126
+ const cacheKey = cacheEntry ?. cache_entry ?. cache_user_given_key ?? primaryKey
127
127
128
128
switch ( cacheEntry . provider ) {
129
- case 's3' : {
129
+ case 's3' :
130
+ case 'r2' : {
130
131
if ( ! cacheEntry . s3 ?. pre_signed_url ) {
131
132
return undefined
132
133
}
@@ -138,7 +139,7 @@ export async function restoreCache(
138
139
139
140
try {
140
141
await cacheHttpClient . downloadCache (
141
- cacheEntry . provider ,
142
+ 's3' ,
142
143
cacheEntry . s3 ?. pre_signed_url ,
143
144
archivePath
144
145
)
@@ -269,7 +270,7 @@ export async function restoreCache(
269
270
270
271
try {
271
272
await cacheHttpClient . downloadCache (
272
- cacheEntry . provider ,
273
+ 'azure_blob' ,
273
274
cacheEntry . azure_blob ?. pre_signed_url ,
274
275
archivePath
275
276
)
@@ -413,6 +414,7 @@ export async function saveCache(
413
414
414
415
switch ( reserveCacheResponse . result ?. provider ) {
415
416
case 's3' :
417
+ case 'r2' :
416
418
core . debug ( `Saving Cache to S3` )
417
419
cacheKey = await cacheHttpClient . saveCache (
418
420
's3' ,
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ async function commitCache(
397
397
cache_version : cacheVersion ,
398
398
upload_key : uploadKey ,
399
399
upload_id : uploadID ,
400
- parts : parts ,
400
+ parts,
401
401
vcs_type : 'github' ,
402
402
vcs_repository : getVCSRepository ( ) ,
403
403
vcs_ref : getVCSRef ( ) ,
You can’t perform that action at this time.
0 commit comments