Skip to content

Commit f2bb05f

Browse files
Feat: Trigger review-app workflow when '/deploy-review-app' is commented (#599)
1 parent dccf95f commit f2bb05f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: .github/workflows/deploy-to-control-plane-review.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ name: Deploy Review App to Control Plane
66
on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
9+
issue_comment:
10+
types: [created, edited]
911

1012
# Convert the GitHub secret variables to environment variables for use by the Control Plane CLI
1113
env:
@@ -14,6 +16,7 @@ env:
1416

1517
jobs:
1618
deploy-to-control-plane-staging:
19+
if: ${{ github.event_name != 'issue_comment' || (github.event.comment.body == '/deploy-review-app' && github.event.issue.pull_request) }}
1720
runs-on: ubuntu-latest
1821

1922
steps:

0 commit comments

Comments
 (0)