Skip to content

Commit

Permalink
Merge pull request #10 from sghost13/add-testing
Browse files Browse the repository at this point in the history
fix up deploy-on-merge action
  • Loading branch information
sghost13 committed Jun 26, 2024
2 parents 766e013 + e54ea2f commit b663568
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 301 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Deploy a CDK stack to dev env with OIDC

on:
workflow_dispatch:
# push:
# branches:
# - main
# push:
# branches:
# - main
pull_request:
types:
- closed
Expand All @@ -16,12 +16,15 @@ permissions:
contents: read # This is required for actions/checkout

jobs:
# only run if merged pulled request
# Only run if a pull request is merged
if_merged:
if: github.event.pull_request.merged == true
# deploy:
# Run for every environment listed
strategy:
matrix:
env: [dev]
runs-on: ubuntu-latest
environment: dev
environment: ${{ matrix.env }}

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -54,4 +57,4 @@ jobs:
env:
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
run: |
npx cdk deploy --all --require-approval never
npx cdk deploy --all --require-approval never
Loading

0 comments on commit b663568

Please sign in to comment.