mirror of
https://github.com/actions/cache
synced 2026-08-18 11:01:41 +08:00
Allow env vars (#13)
* allow env vars * manually run prettier * rebuild dist * Revert "rebuild dist" This reverts commit 9d562404127f788fe91e072dde1d09ddaf287d30. * rebuild dist using node16
This commit is contained in:
Vendored
+5
-3
@@ -15852,10 +15852,12 @@ function getInputS3ClientConfig() {
|
||||
}
|
||||
const s3config = {
|
||||
credentials: {
|
||||
accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId),
|
||||
secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey)
|
||||
accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId) ||
|
||||
process.env["AWS_ACCESS_KEY_ID"],
|
||||
secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) ||
|
||||
process.env["AWS_SECRET_ACCESS_KEY"]
|
||||
},
|
||||
region: core.getInput(constants_1.Inputs.AWSRegion),
|
||||
region: core.getInput(constants_1.Inputs.AWSRegion) || process.env["AWS_REGION"],
|
||||
endpoint: core.getInput(constants_1.Inputs.AWSEndpoint),
|
||||
bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint),
|
||||
forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle)
|
||||
|
||||
Reference in New Issue
Block a user