File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
actions/deploy-to-control-plane Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ inputs:
17
17
description : ' Timeout in seconds for waiting for workloads to be ready'
18
18
required : false
19
19
default : ' 900'
20
+ cpln_token :
21
+ description : ' Control Plane token'
22
+ required : true
23
+ pr_number :
24
+ description : ' Pull Request number'
25
+ required : true
20
26
21
27
outputs :
22
28
review_app_url :
@@ -50,11 +56,14 @@ runs:
50
56
run : ${{ github.action_path }}/scripts/get-commit-sha.sh
51
57
env :
52
58
GITHUB_TOKEN : ${{ inputs.github_token }}
53
- PR_NUMBER : ${{ env.PR_NUMBER }}
59
+ PR_NUMBER : ${{ inputs.pr_number }}
54
60
55
61
- name : Deploy to Control Plane
56
62
id : deploy
57
63
shell : bash
64
+ env :
65
+ CPLN_TOKEN : ${{ inputs.cpln_token }}
66
+ PR_NUMBER : ${{ inputs.pr_number }}
58
67
run : |
59
68
echo "🚀 Deploying app for PR #${PR_NUMBER}..."
60
69
Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ jobs:
103
103
104
104
- name : Check if Review App Exists
105
105
id : check-app
106
- if : github.event_name == 'push'
107
- env :
108
- CPLN_TOKEN : ${{ secrets.CPLN_TOKEN }}
109
106
run : |
110
107
if ! cpflow exists -a ${{ env.APP_NAME }}; then
111
108
echo "No review app exists for this PR"
@@ -283,9 +280,8 @@ jobs:
283
280
org : ${{ env.CPLN_ORG }}
284
281
github_token : ${{ secrets.GITHUB_TOKEN }}
285
282
wait_timeout : ${{ vars.WAIT_TIMEOUT || 900 }}
286
- env :
287
- CPLN_TOKEN : ${{ env.CPLN_TOKEN }}
288
- PR_NUMBER : ${{ env.PR_NUMBER }}
283
+ cpln_token : ${{ secrets.CPLN_TOKEN_STAGING }}
284
+ pr_number : ${{ env.PR_NUMBER }}
289
285
290
286
- name : Update Status - Deployment Complete
291
287
uses : actions/github-script@v7
Original file line number Diff line number Diff line change 30
30
- name : Checkout
31
31
uses : actions/checkout
32
32
33
- - name : Show Help Information
34
- uses : shakacode/shared- actions/help-command@justin808-more-work-on-review-apps-2
33
+ - name : Process Help Command
34
+ uses : shakacode/react-webpack-rails-tutorial/.github/ actions/help-command@justin808-more-work-on-review-apps-2
35
35
with :
36
36
github-token : ${{ secrets.GITHUB_TOKEN }}
37
- issue-number : ${{ github.event.inputs.issue-number }}
37
+ issue-number : ${{ github.event.inputs.issue-number }}
You can’t perform that action at this time.
0 commit comments