From d017cebeb8487a5d30d6ccad601000c9a0e92dd7 Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Fri, 24 Nov 2023 11:13:09 +0000 Subject: [PATCH] Checkout infra code to run workflow --- .github/workflows/review_pipeline.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index d591e15d4..7f95978c6 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.github/workflows/review_pipeline.yml @@ -10,6 +10,9 @@ on: - synchronize - reopened workflow_dispatch: + push: + branches: + - AwsReviewApps defaults: run: @@ -17,7 +20,20 @@ defaults: jobs: infra: - name: Deploy review app infrastructure - TODO + name: Deploy review app infrastructure + runs-on: ubuntu-latest + + steps: + - name: Checkout infrastructure code + uses: actions/checkout@v3 + with: + repository: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure + ref: ReviewAppsDeploy + + - name: Create review app infra + uses: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure/.github/workflows/create_review_app_infra.yml@ReviewAppsDeploy + with: + key: ${{ github.event.pull_request.number }} code: name: Deploy review app code