mirror of
https://github.com/actions/cache.git
synced 2025-07-16 21:27:54 +00:00
v0.12.0
This commit is contained in:
parent
7b3fb19462
commit
2e9ce0166f
5 changed files with 44 additions and 24 deletions
|
@ -24,13 +24,19 @@ export class CacheService {
|
|||
region: string,
|
||||
bucket: string
|
||||
) {
|
||||
this._client = new S3({
|
||||
region: region,
|
||||
credentials: {
|
||||
accessKeyId: accessKeyId,
|
||||
secretAccessKey: secretAccessKey
|
||||
}
|
||||
});
|
||||
if (accessKeyId && secretAccessKey) {
|
||||
this._client = new S3({
|
||||
region: region,
|
||||
credentials: {
|
||||
accessKeyId: accessKeyId,
|
||||
secretAccessKey: secretAccessKey
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this._client = new S3({
|
||||
region: region
|
||||
});
|
||||
}
|
||||
this._bucket = bucket;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue