From 759487f0716fe8c8c8047fb98445141ffcc0a771 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Wed, 13 Nov 2024 07:31:50 -0800 Subject: [PATCH] Revert "Update GH workflow (#5)" This reverts commit e2ff3f5dd81b2c9321c642f6664b3db2f3587f67. Code was updated to allow cdk synth without access to AWS --- .github/workflows/deploy-dev.yaml | 2 +- .github/workflows/deploy-prod.yaml | 2 +- .github/workflows/deploy-stage.yaml | 2 +- .github/workflows/pre-deploy-check.yml | 25 ------------------------- 4 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/pre-deploy-check.yml diff --git a/.github/workflows/deploy-dev.yaml b/.github/workflows/deploy-dev.yaml index 53d119a..d2d24b7 100644 --- a/.github/workflows/deploy-dev.yaml +++ b/.github/workflows/deploy-dev.yaml @@ -3,7 +3,7 @@ name: deploy-dev on: workflow_run: workflows: - - pre-deploy-check + - check types: - completed branches: diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index 2bd5b7e..69b63cd 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -3,7 +3,7 @@ name: deploy-prod on: workflow_run: workflows: - - pre-deploy-check + - check types: - completed branches: diff --git a/.github/workflows/deploy-stage.yaml b/.github/workflows/deploy-stage.yaml index 338b95d..7b2c65e 100644 --- a/.github/workflows/deploy-stage.yaml +++ b/.github/workflows/deploy-stage.yaml @@ -3,7 +3,7 @@ name: deploy-stage on: workflow_run: workflows: - - pre-deploy-check + - check types: - completed branches: diff --git a/.github/workflows/pre-deploy-check.yml b/.github/workflows/pre-deploy-check.yml deleted file mode 100644 index 0a0ea07..0000000 --- a/.github/workflows/pre-deploy-check.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: pre-deploy-check - -on: - workflow_run: - workflows: - - check - types: - - completed - branches: [dev, stage, prod] - -jobs: - synth: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Install dependencies - run: pip install -r requirements.txt -r requirements-dev.txt - - name: Generate cloudformation - uses: youyo/aws-cdk-github-actions@v2 - with: - cdk_subcommand: 'synth' - actions_comment: false - debug_log: true - cdk_args: '--output ./cdk.out'