1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-16 21:27:54 +00:00
This commit is contained in:
Caleb Gosiak 2021-10-04 10:00:10 -05:00
parent 7b3fb19462
commit 2e9ce0166f
5 changed files with 44 additions and 24 deletions

View file

@ -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;
}