diff --git a/package-lock.json b/package-lock.json index 0270c9b..1052259 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opensearch-automation-app", - "version": "0.1.8", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensearch-automation-app", - "version": "0.1.8", + "version": "0.1.10", "dependencies": { "@aws-sdk/client-cloudwatch": "^3.664.0", "@aws-sdk/client-opensearch": "^3.658.1", diff --git a/package.json b/package.json index 437fd5e..917b56a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opensearch-automation-app", - "version": "0.1.9", + "version": "0.1.10", "description": "An Automation App that handles all your GitHub Repository Activities", "author": "Peter Zhu", "homepage": "https://github.com/opensearch-project/automation-app", diff --git a/src/call/github-events-to-s3.ts b/src/call/github-events-to-s3.ts index 6d26fab..487ebcd 100644 --- a/src/call/github-events-to-s3.ts +++ b/src/call/github-events-to-s3.ts @@ -26,7 +26,7 @@ export default async function githubEventsToS3(app: Probot, context: any, resour try { const s3Client = new S3Client({ region: String(process.env.REGION) }); const putObjectCommand = new PutObjectCommand({ - Bucket: 'opensearch-project-github-events', + Bucket: String(process.env.OPENSEARCH_EVENTS_BUCKET), Body: JSON.stringify(context), Key: `${context.name}.${context.payload.action}/${year}-${month}-${day}/${repoName}-${context.id}`, });