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 f94058e
Showing 1 changed file with 1 addition and 1 deletion.
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 f94058e

Please sign in to comment.