From 7c7cf75960be9a22ac4bc21364f14e1f8563366e Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Mon, 9 Mar 2026 16:49:21 +0000 Subject: [PATCH] CLDC-4236: add manual worflow dispatch method back in --- .github/workflows/review_pipeline.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index 55f041f62..d126853bd 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.github/workflows/review_pipeline.yml @@ -3,13 +3,19 @@ name: Review app pipeline on: issue_comment: types: [created] + workflow_dispatch: + inputs: + pull_request_id: + required: true + type: string + description: "The pull request ID to deploy a review app for." permissions: {} jobs: get_pr_details: name: Get PR details - if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/deploy-review') + if: github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && startsWith(github.event.comment.body, '/deploy-review')) runs-on: ubuntu-latest outputs: pr_number: ${{ steps.get_pr_details.outputs.pr_number }} @@ -19,7 +25,11 @@ jobs: uses: actions/github-script@v7 with: script: | - core.setOutput('pr_number', context.issue.number.toString()); + if (context.eventName === 'workflow_dispatch') { + core.setOutput('pr_number', '${{ inputs.pull_request_id }}'); + } else { + core.setOutput('pr_number', context.issue.number.toString()); + } infra: name: Deploy review app infrastructure