Skip to content

Commit 1f119f1

Browse files
committed
feat: trigger review-app deployment on commenting "/deploy-review-app"
1 parent d66fa38 commit 1f119f1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/deploy-to-control-plane-review.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ on:
99
issue_comment:
1010
types: [created, edited]
1111

12-
# Triggers the workflow on pull request events
13-
pull_request:
14-
branches:
15-
- master
12+
# Uncomment these lines to trigger the workflow on pull request events
13+
# pull_request:
14+
# branches:
15+
# - master
16+
17+
# deploy on comment "/deploy-review-app"
18+
issue_comment:
19+
types: [created, edited]
1620

1721
# Convert the GitHub secret variables to environment variables for use by the Control Plane CLI
1822
env:
1923
CPLN_ORG: ${{secrets.CPLN_ORG_STAGING}}
2024
CPLN_TOKEN: ${{secrets.CPLN_TOKEN_STAGING}}
21-
PR_NUMBER: ${{github.event.number}}
25+
# Uncomment this line to use the PR number from the pull requests trigger event (that trigger is commented)
26+
# PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
27+
PR_NUMBER: ${{ github.event.issue.number }}
2228

2329
jobs:
2430
deploy-to-control-plane-review:

0 commit comments

Comments
 (0)