File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 # Allows you to run this workflow manually from the Actions tab
88 workflow_dispatch :
99
10- # Triggers the workflow on pull request events
11- pull_request :
12- branches :
13- - master
10+ # Uncomment these lines to trigger the workflow on pull request events
11+ # pull_request:
12+ # branches:
13+ # - master
14+
15+ # deploy on comment "/deploy-review-app"
16+ issue_comment :
17+ types : [created, edited]
1418
1519# Convert the GitHub secret variables to environment variables for use by the Control Plane CLI
1620env :
1721 CPLN_ORG : ${{secrets.CPLN_ORG_STAGING}}
1822 CPLN_TOKEN : ${{secrets.CPLN_TOKEN_STAGING}}
19- PR_NUMBER : ${{github.event.number}}
23+ # Uncomment this line to use the PR number from the pull requests trigger event (that trigger is commented)
24+ # PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
25+ PR_NUMBER : ${{ github.event.issue.number }}
2026
2127jobs :
2228 deploy-to-control-plane-review :
29+ if : ${{ github.event_name != 'issue_comment' || (github.event.comment.body == '/deploy-review-app' && github.event.issue.pull_request) }}
2330 runs-on : ubuntu-latest
2431
2532 steps :
You can’t perform that action at this time.
0 commit comments