Skip to content

Commit

Permalink
Merge pull request #3 from vtex/chore/add-awsaccount
Browse files Browse the repository at this point in the history
chore: add aws account
  • Loading branch information
natavmelo authored Feb 19, 2025
2 parents 9c68129 + b4c76a9 commit a6d9ac4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
application:
description: 'Application name'
required: true
awsAccount:
description: 'AWS Account ID'
required: true

runs:
using: node20
Expand Down
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ export async function run(): Promise<void> {
const environment = getInput('environment')
const application = getInput('application')
const infrastructure = getInput('infrastructure')
const awsAccount = getInput('awsAccount')
const payload = {
application,
infrastructure,
creator
creator,
awsAccount
}
const description = `Deploy: ${application} ${ref} ${environment} ${infrastructure}`
const description = `Deploy: ${application} ${ref} ${environment} ${infrastructure} ${awsAccount}`

const appId = getInput('appId')
const installationId = getInput('installationId') || ''
Expand All @@ -39,6 +41,7 @@ export async function run(): Promise<void> {
description: description,
payload,
auto_merge: false,
auto_inactive: false,
required_contexts: []
})
console.log(description)
Expand Down

0 comments on commit a6d9ac4

Please sign in to comment.