Commit 4fc1c00 1 parent 704b6b3 commit 4fc1c00 Copy full SHA for 4fc1c00
File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ inputs:
14
14
outputs :
15
15
stage :
16
16
description : The inferred stage from the branch or PR name
17
+ deploy :
18
+ description : If the serverless stack should be deployed, defaults to true. False when a pull request is closed.
17
19
destroy :
18
20
description : If the serverless stack should be destroyed, defaults to false. True when a pull request is closed.
19
21
runs :
Original file line number Diff line number Diff line change @@ -47,10 +47,13 @@ export class Action {
47
47
}
48
48
setOutput ( 'stage' , deploymentStage ) ;
49
49
50
+ let deploy = true ;
50
51
let destroy = false ;
51
52
if ( context . eventName === 'pull_request' && context . payload . action === 'closed' ) {
53
+ deploy = false ;
52
54
destroy = true ;
53
55
}
56
+ setOutput ( 'deploy' , deploy ) ;
54
57
setOutput ( 'destroy' , destroy ) ;
55
58
56
59
let idToken : string | undefined = undefined ;
You can’t perform that action at this time.
0 commit comments