diff --git a/.github/workflows/build-infra.yml b/.github/workflows/build-infra.yml index fe9c1f2e..338af773 100644 --- a/.github/workflows/build-infra.yml +++ b/.github/workflows/build-infra.yml @@ -30,13 +30,13 @@ on: - "Yes" jobs: - initial: - if: ${{ inputs.run_initial == 'Yes' }} + build: runs-on: ubuntu-latest - outputs: - job_status: ${{ job.status }} + secrets: inherit + steps: - name: Build Initial Infra + if: ${{ inputs.run_initial == 'Yes' }} uses: ./.github/workflows/aws-template-terraform.yml with: CONTEXT_FOLDER: "./infrastructure/cloud/environments/initial" @@ -44,13 +44,11 @@ jobs: ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }} APPLY_TF_CODE: false - build: - needs: [initial] - if: ${{ inputs.run_initial == 'No' || needs.initial.outputs.job_status == 'success' }} - uses: ./.github/workflows/aws-template-terraform.yml - with: - CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}" - CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }} - ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }} - APPLY_TF_CODE: false - secrets: inherit + - name: Build Infra + uses: ./.github/workflows/aws-template-terraform.yml + with: + CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}" + CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }} + ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }} + APPLY_TF_CODE: false + \ No newline at end of file