Commit 2f018a8 1 parent d45f139 commit 2f018a8 Copy full SHA for 2f018a8
File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 35
35
"@aws-sdk/client-cloudformation" : " ^3.533.0" ,
36
36
"@aws-sdk/client-sts" : " ^3.533.0" ,
37
37
"axios" : " ^1.6.7" ,
38
+ "boolean" : " ^3.2.0" ,
38
39
"jose" : " ^5.2.3"
39
40
},
40
41
"devDependencies" : {
64
65
"webpack-cli" : " ^4.9.1" ,
65
66
"webpack-node-externals" : " ^3.0.0"
66
67
}
67
- }
68
+ }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
GetCallerIdentityCommand ,
12
12
} from '@aws-sdk/client-sts' ;
13
13
import { roleSetupInstructions } from './messages' ;
14
+ import { boolean } from 'boolean' ;
14
15
15
16
const { GITHUB_REPOSITORY , GITHUB_REF , GITHUB_BASE_REF } = process . env ;
16
17
@@ -49,7 +50,11 @@ export class Action {
49
50
50
51
let deploy = true ;
51
52
let destroy = false ;
52
- if ( context . eventName === 'pull_request' && context . payload . action === 'closed' ) {
53
+ if (
54
+ ( context . eventName === 'pull_request' && context . payload . action === 'closed' ) ||
55
+ ( context . eventName === 'workflow_dispatch' &&
56
+ boolean ( context . payload . inputs . destroy ) === true )
57
+ ) {
53
58
deploy = false ;
54
59
destroy = true ;
55
60
}
Original file line number Diff line number Diff line change @@ -1882,6 +1882,11 @@ before-after-hook@^2.2.0:
1882
1882
resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c"
1883
1883
integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==
1884
1884
1885
+ boolean@^3.2.0 :
1886
+ version "3.2.0"
1887
+ resolved "https://registry.yarnpkg.com/boolean/-/boolean-3.2.0.tgz#9e5294af4e98314494cbb17979fa54ca159f116b"
1888
+ integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==
1889
+
1885
1890
bowser@^2.11.0 :
1886
1891
version "2.11.0"
1887
1892
resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f"
You can’t perform that action at this time.
0 commit comments