From fe5e8a1df72fb262e6c2d11ddcbba23345c85f05 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Tue, 27 Aug 2024 00:49:58 +0000 Subject: [PATCH] - Add check_changes step in deploy_infra - Rename deploy to build when build-infra wf is running --- .github/workflows/aws-template-terraform.yml | 2 +- .github/workflows/build-infra.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aws-template-terraform.yml b/.github/workflows/aws-template-terraform.yml index 7ecac407..7ba25193 100644 --- a/.github/workflows/aws-template-terraform.yml +++ b/.github/workflows/aws-template-terraform.yml @@ -88,7 +88,7 @@ jobs: TF_VAR_environment: ${{ vars.ENVIRONMENT_NAME }} TF_VAR_kms_key_name: ${{ vars.KMS_KEY_NAME }} TF_VAR_vpc_id: ${{ vars.VPC_ID }} - needs: [scan] + needs: [check_changes, scan] steps: - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/build-infra.yml b/.github/workflows/build-infra.yml index b19582fe..2eaec906 100644 --- a/.github/workflows/build-infra.yml +++ b/.github/workflows/build-infra.yml @@ -22,7 +22,7 @@ on: - prod jobs: - deploy: + build: uses: ./.github/workflows/aws-template-terraform.yml with: CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"