File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ async function post() {
193
193
const github_token = core . getInput ( 'github_token' ) ;
194
194
const repository = process . env . GITHUB_REPOSITORY ;
195
195
const [ owner , repo ] = ( repository || '' ) . split ( '/' ) ;
196
- const ref = process . env . GITHUB_REF || process . env . GITHUB_SHA ;
196
+ const sha = process . env . GITHUB_SHA ;
197
197
198
198
// 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 } ` ) ;
201
201
202
202
const octokit = require ( '@octokit/rest' ) ;
203
203
const { Octokit } = octokit ;
@@ -210,12 +210,12 @@ async function post() {
210
210
const deployment = await client . repos . createDeployment ( {
211
211
owner,
212
212
repo,
213
- ref,
213
+ ref : sha ,
214
214
environment : 'polar-signals-cloud' ,
215
215
required_contexts : [ ] ,
216
216
auto_merge : false ,
217
217
description : 'Polar Signals Profiling Results' ,
218
- transient_environment : true ,
218
+ transient_environment : false ,
219
219
production_environment : false
220
220
} ) ;
221
221
You can’t perform that action at this time.
0 commit comments