mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 15:48:39 +08:00 
			
		
		
		
	v0.5.0
This commit is contained in:
		
							parent
							
								
									9c23f97836
								
							
						
					
					
						commit
						ef015fc7a1
					
				
							
								
								
									
										6
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -43366,7 +43366,11 @@ class CacheService {
 | 
				
			||||||
                .putObject({
 | 
					                .putObject({
 | 
				
			||||||
                Bucket: this._bucket,
 | 
					                Bucket: this._bucket,
 | 
				
			||||||
                Key: path.join(this.getCacheFolder(), key),
 | 
					                Key: path.join(this.getCacheFolder(), key),
 | 
				
			||||||
                Body: data
 | 
					                Body: data,
 | 
				
			||||||
 | 
					                Metadata: {
 | 
				
			||||||
 | 
					                    ContentType: "text/plain",
 | 
				
			||||||
 | 
					                    ContentEncoding: "gzip"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
                .promise();
 | 
					                .promise();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -43366,7 +43366,11 @@ class CacheService {
 | 
				
			||||||
                .putObject({
 | 
					                .putObject({
 | 
				
			||||||
                Bucket: this._bucket,
 | 
					                Bucket: this._bucket,
 | 
				
			||||||
                Key: path.join(this.getCacheFolder(), key),
 | 
					                Key: path.join(this.getCacheFolder(), key),
 | 
				
			||||||
                Body: data
 | 
					                Body: data,
 | 
				
			||||||
 | 
					                Metadata: {
 | 
				
			||||||
 | 
					                    ContentType: "text/plain",
 | 
				
			||||||
 | 
					                    ContentEncoding: "gzip"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
                .promise();
 | 
					                .promise();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "name": "cache",
 | 
					  "name": "cache",
 | 
				
			||||||
  "version": "0.5.0",
 | 
					  "version": "0.6.0",
 | 
				
			||||||
  "private": true,
 | 
					  "private": true,
 | 
				
			||||||
  "description": "Cache dependencies and build outputs",
 | 
					  "description": "Cache dependencies and build outputs",
 | 
				
			||||||
  "main": "dist/restore/index.js",
 | 
					  "main": "dist/restore/index.js",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -133,7 +133,11 @@ export class CacheService {
 | 
				
			||||||
            .putObject({
 | 
					            .putObject({
 | 
				
			||||||
                Bucket: this._bucket,
 | 
					                Bucket: this._bucket,
 | 
				
			||||||
                Key: path.join(this.getCacheFolder(), key),
 | 
					                Key: path.join(this.getCacheFolder(), key),
 | 
				
			||||||
                Body: data
 | 
					                Body: data,
 | 
				
			||||||
 | 
					                Metadata: {
 | 
				
			||||||
 | 
					                    ContentType: "text/plain",
 | 
				
			||||||
 | 
					                    ContentEncoding: "gzip"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            .promise();
 | 
					            .promise();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user