From 3eeca94948d0a23cb4f64b0800316757132557b0 Mon Sep 17 00:00:00 2001 From: Ramez Weissa Date: Mon, 26 Aug 2024 11:46:24 +0300 Subject: [PATCH] feat: add a review-app trigger when '/deploy-review-app' is commented --- .github/workflows/deploy-to-control-plane-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-to-control-plane-review.yml b/.github/workflows/deploy-to-control-plane-review.yml index ad6516f3..99ca9b90 100644 --- a/.github/workflows/deploy-to-control-plane-review.yml +++ b/.github/workflows/deploy-to-control-plane-review.yml @@ -6,6 +6,8 @@ name: Deploy Review App to Control Plane on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + issue_comment: + types: [created, edited] # Convert the GitHub secret variables to environment variables for use by the Control Plane CLI env: @@ -14,6 +16,7 @@ env: jobs: deploy-to-control-plane-staging: + if: ${{ github.event_name != 'issue_comment' || (github.event.comment.body == '/deploy-review-app' && github.event.issue.pull_request) }} runs-on: ubuntu-latest steps: