File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed
Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ async function runServerlessDeploy() {
4040}
4141
4242// Main function
43- if ( require . main === module ) {
44- await installDocker ( )
45- await installServerlessAndPlugins ( )
46- await runServerlessDeploy ( )
47- }
43+ ( async ( ) => {
44+ if ( require . main === module ) {
45+ await installDocker ( )
46+ await installServerlessAndPlugins ( )
47+ await runServerlessDeploy ( )
48+ }
49+ } ) ( ) ;
Original file line number Diff line number Diff line change 1+ // Packages
2+ var core = require ( '@actions/core' ) ;
3+ var execSync = require ( 'child_process' ) . execSync ;
4+ code = execSync ( 'sudo npm install exeq --save' ) ;
5+ var exeq = require ( 'exeq' ) ;
6+
7+ async function one ( ) {
8+ await exeq (
9+ 'echo ONE'
10+ ) ;
11+ }
12+
13+ async function two ( ) {
14+ await exeq (
15+ 'echo TWO'
16+ ) ;
17+ }
18+
19+ async function three ( ) {
20+ await exeq (
21+ 'echo THREE'
22+ ) ;
23+ }
24+
25+ // Main function
26+ ( async ( ) => {
27+ if ( require . main === module ) {
28+ await one ( )
29+ await two ( )
30+ await three ( )
31+ }
32+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments