File tree Expand file tree Collapse file tree 6 files changed +170
-245
lines changed
Expand file tree Collapse file tree 6 files changed +170
-245
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,6 @@ inputs:
1717 description : ' Timeout in seconds for waiting for workloads to be ready'
1818 required : false
1919 default : ' 900'
20- cpln_token :
21- description : ' Control Plane token'
22- required : true
23- pr_number :
24- description : ' Pull Request number'
25- required : true
2620
2721outputs :
2822 review_app_url :
@@ -56,14 +50,11 @@ runs:
5650 run : ${{ github.action_path }}/scripts/get-commit-sha.sh
5751 env :
5852 GITHUB_TOKEN : ${{ inputs.github_token }}
59- PR_NUMBER : ${{ inputs.pr_number }}
53+ PR_NUMBER : ${{ env.PR_NUMBER }}
6054
6155 - name : Deploy to Control Plane
6256 id : deploy
6357 shell : bash
64- env :
65- CPLN_TOKEN : ${{ inputs.cpln_token }}
66- PR_NUMBER : ${{ inputs.pr_number }}
6758 run : |
6859 echo "🚀 Deploying app for PR #${PR_NUMBER}..."
6960
Original file line number Diff line number Diff line change @@ -5,15 +5,12 @@ inputs:
55 github-token :
66 description : ' GitHub token for posting comments'
77 required : true
8- issue-number :
9- description : ' PR/Issue number to post the comment to (optional, defaults to event context)'
10- required : false
118
129runs :
1310 using : " composite"
1411 steps :
1512 - name : Show Available Commands
16- uses : actions/github-script@v7
13+ uses : actions/github-script
1714 with :
1815 github-token : ${{ inputs.github-token }}
1916 script : |
@@ -83,14 +80,12 @@ runs:
8380 '3. Open an issue in this repository',
8481 ].join('\n');
8582
86- const issueNumber = inputs['issue-number'] ||
87- (context.eventName === 'issue_comment' ? context.payload.issue.number : null);
88-
89- if (issueNumber) {
83+ const context = github.context;
84+ if (context.eventName === 'issue_comment') {
9085 await github.rest.issues.createComment({
9186 owner: context.repo.owner,
9287 repo: context.repo.repo,
93- issue_number: issueNumber ,
88+ issue_number: context.payload.issue.number ,
9489 body: helpText
9590 });
9691 } else {
Original file line number Diff line number Diff line change 2222 - name : Install Control Plane CLI and cpflow gem
2323 shell : bash
2424 run : |
25- sudo npm install -g @controlplane/cli@3.3.1
25+ sudo npm install -g @controlplane/cli@3.3.0
2626 cpln --version
2727 gem install cpflow -v 4.1.0
2828 cpflow --version
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments