Skip to content

Commit

Permalink
fix: replace uses with run for gh action steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysteenman committed Mar 12, 2024
1 parent ca61516 commit 2c3ff34
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cdk-deploy-dev.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .github/workflows/cdk-deploy-test.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/bin/cicd-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function githubCICD(gh: github.GitHub, account: string, env: string, node
},
steps: [
{
name: 'Checkout repo',
name: 'Checkout repository',
uses: 'actions/checkout@v4',
},
{
Expand All @@ -43,15 +43,15 @@ export function githubCICD(gh: github.GitHub, account: string, env: string, node
},
{
name: 'Install dependencies',
uses: 'npm ci',
run: 'npm ci',
},
{
name: `Run CDK synth for the ${env.toUpperCase()} environment`,
uses: `npm run ${env}:synth`,
run: `npm run ${env}:synth`,
},
{
name: `Deploy CDK to the ${env.toUpperCase()} environment on AWS account ${account}`,
uses: `npm run ${env}:deploy`,
run: `npm run ${env}:deploy`,
},
],
},
Expand Down

0 comments on commit 2c3ff34

Please sign in to comment.