1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-16 21:27:54 +00:00

removed region

This commit is contained in:
Caleb Gosiak 2021-10-04 11:02:09 -05:00
parent 2e9ce0166f
commit efa512101d
8 changed files with 9 additions and 31 deletions

View file

@ -18,24 +18,16 @@ export class CacheService {
private _client: S3;
private _bucket: string;
constructor(
accessKeyId: string,
secretAccessKey: string,
region: string,
bucket: string
) {
constructor(accessKeyId: string, secretAccessKey: string, bucket: string) {
if (accessKeyId && secretAccessKey) {
this._client = new S3({
region: region,
credentials: {
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey
}
});
} else {
this._client = new S3({
region: region
});
this._client = new S3();
}
this._bucket = bucket;
}