diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index b31f81e23..da45db9b1 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.github/workflows/review_pipeline.yml @@ -9,6 +9,7 @@ on: - opened - synchronize - reopened + - labeled workflow_dispatch: defaults: @@ -18,6 +19,7 @@ defaults: jobs: infra: name: Deploy review app infrastructure + if: contains(github.event.pull_request.labels.*.name, 'deploy-review') uses: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure/.github/workflows/create_review_app_infra.yml@main with: key: ${{ github.event.pull_request.number }} @@ -40,6 +42,7 @@ jobs: comment: name: Add link to PR + if: contains(github.event.pull_request.labels.*.name, 'deploy-review') needs: [code] runs-on: ubuntu-latest permissions: