Skip to content

Commit 38177bd

Browse files
committed
fix
1 parent 4becb9a commit 38177bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
2424
CPLN_ORG: ${{ vars.CPLN_ORG_STAGING }}
2525
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }}
26+
PR_SHA: ${{ github.sha }}
2627

2728
jobs:
2829
debug:
@@ -198,7 +199,7 @@ jobs:
198199
id: init-deployment
199200
with:
200201
script: |
201-
const ref = github.sha;
202+
const ref = process.env.PR_SHA;
202203
const environment = process.env.ENVIRONMENT_NAME || 'review-app';
203204
204205
const deployment = await github.rest.repos.createDeployment({

0 commit comments

Comments
 (0)