Skip to content

Commit

Permalink
Changed bucket name to env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Shien <bshien@amazon.com>
  • Loading branch information
bshien committed Oct 9, 2024
1 parent abfeaa1 commit 54f6049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/call/github-events-to-s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
});
Expand Down

0 comments on commit 54f6049

Please sign in to comment.