File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ async function post() {
193193 const github_token = core . getInput ( 'github_token' ) ;
194194 const repository = process . env . GITHUB_REPOSITORY ;
195195 const [ owner , repo ] = ( repository || '' ) . split ( '/' ) ;
196- const ref = process . env . GITHUB_REF || process . env . GITHUB_SHA ;
196+ const sha = process . env . GITHUB_SHA ;
197197
198198 // Check if all required parameters are available for deployment
199- if ( github_token && owner && repo && ref && projectUuid && queryUrl ) {
200- core . info ( `Creating deployment for ${ owner } /${ repo } at ${ ref } ` ) ;
199+ if ( github_token && owner && repo && sha && projectUuid && queryUrl ) {
200+ core . info ( `Creating deployment for ${ owner } /${ repo } at ${ sha } ` ) ;
201201
202202 const octokit = require ( '@octokit/rest' ) ;
203203 const { Octokit } = octokit ;
@@ -210,12 +210,12 @@ async function post() {
210210 const deployment = await client . repos . createDeployment ( {
211211 owner,
212212 repo,
213- ref,
213+ ref : sha ,
214214 environment : 'polar-signals-cloud' ,
215215 required_contexts : [ ] ,
216216 auto_merge : false ,
217217 description : 'Polar Signals Profiling Results' ,
218- transient_environment : true ,
218+ transient_environment : false ,
219219 production_environment : false
220220 } ) ;
221221
You can’t perform that action at this time.
0 commit comments