mirror of
https://github.com/actions/cache.git
synced 2025-07-16 21:27:54 +00:00
removed region
This commit is contained in:
parent
2e9ce0166f
commit
efa512101d
8 changed files with 9 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue