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..9979055 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.BUCKET_NAME), Body: JSON.stringify(context), Key: `${context.name}.${context.payload.action}/${year}-${month}-${day}/${repoName}-${context.id}`, });