Skip to content

Commit

Permalink
Merge pull request #9 from thakurrishabh/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
thakurrishabh authored Apr 4, 2021
2 parents 9e55b12 + 2294b34 commit a354374
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/aws-cdk-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ jobs:
- name: "Installing dependencies from requirements.txt"
run: python -m pip install -r requirements.txt

- uses: actions/setup-node@v2
with:
node-version: '14'

- name: "Installing AWS CDK"
run: npm install -g aws-cdk

- name: "Run CDK bootstrap"
run: cdk bootstrap aws://515184503796/us-east-1

- name: "Run cdk deploy"
run: cdk deploy
run: cdk deploy --require-approval never
26 changes: 25 additions & 1 deletion .github/workflows/aws-cdk-synth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,29 @@ jobs:
- name: "Installing dependencies from requirements.txt"
run: python -m pip install -r requirements.txt

- uses: actions/setup-node@v2
with:
node-version: '14'

- name: "Installing AWS CDK"
run: npm install -g aws-cdk

- name: "Run cdk synth"
run: cdk synth
id: synth
run: |
cdk synth --output=./templates
echo "##[set-output name=stdoutplan;]$(cat ./templates/EventBridgeAwsCdkStack.template.json)"
- name: "Run - CDK synth Comment"
uses: actions/github-script@0.9.0
env:
STDOUT: "```${{ steps.synth.outputs.stdoutplan }}```"
with:
github-token: ${{ secrets.GIT_PAT }}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.STDOUT
})
1 change: 1 addition & 0 deletions echo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"9.0.0"}

0 comments on commit a354374

Please sign in to comment.