File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function generateBuildSummary() {
19
19
try {
20
20
// Read the contents of the release directory and Docker subdirectory
21
21
const files = fs . readdirSync ( directoryPath )
22
- const dockerFiles = fs . readdirSync ( dockerDirectoryPath ) . map ( ( file ) => `docker/${ file } ` )
22
+ const dockerFiles = fs . existsSync ( dockerDirectoryPath ) ? fs . readdirSync ( dockerDirectoryPath ) . map ( ( file ) => `docker/${ file } ` ) : [ ] ;
23
23
24
24
// Combine all files into a single array
25
25
const allFiles = [ ...files , ...dockerFiles ]
@@ -64,13 +64,17 @@ async function generateBuildSummary() {
64
64
} )
65
65
66
66
const data = markdownLines . join ( '\n' )
67
- const summaryFilePath = GITHUB_STEP_SUMMARY
67
+ console . log ( { data } ) ;
68
68
69
- await writeFile ( summaryFilePath , data , { encoding : 'utf8' } )
69
+ // const summaryFilePath = GITHUB_STEP_SUMMARY
70
+
71
+ // await writeFile(summaryFilePath, data, { encoding: 'utf8' })
70
72
71
73
console . log ( 'Build summary generated successfully.' )
72
74
73
75
} catch ( error ) {
76
+ console . error ( error ) ;
77
+
74
78
}
75
79
}
76
80
Original file line number Diff line number Diff line change 84
84
with :
85
85
target : ${{ needs.get-selected.outputs.selected }}
86
86
debug : ${{ inputs.debug }}
87
+ environment : ${{ inputs.environment }}
87
88
88
89
aws-upload :
89
90
uses : ./.github/workflows/aws-upload-dev.yml
You can’t perform that action at this time.
0 commit comments