Skip to content

Commit 47f279d

Browse files
committed
#RI-6281 - Enhance Github Actions
1 parent 512b433 commit 47f279d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/generate-build-summary.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function generateBuildSummary() {
1919
try {
2020
// Read the contents of the release directory and Docker subdirectory
2121
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}`) : [];
2323

2424
// Combine all files into a single array
2525
const allFiles = [...files, ...dockerFiles]
@@ -64,13 +64,17 @@ async function generateBuildSummary() {
6464
})
6565

6666
const data = markdownLines.join('\n')
67-
const summaryFilePath = GITHUB_STEP_SUMMARY
67+
console.log({data});
6868

69-
await writeFile(summaryFilePath, data, { encoding: 'utf8' })
69+
// const summaryFilePath = GITHUB_STEP_SUMMARY
70+
71+
// await writeFile(summaryFilePath, data, { encoding: 'utf8' })
7072

7173
console.log('Build summary generated successfully.')
7274

7375
} catch (error) {
76+
console.error(error);
77+
7478
}
7579
}
7680

.github/workflows/manual-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
with:
8585
target: ${{ needs.get-selected.outputs.selected }}
8686
debug: ${{ inputs.debug }}
87+
environment: ${{ inputs.environment }}
8788

8889
aws-upload:
8990
uses: ./.github/workflows/aws-upload-dev.yml

0 commit comments

Comments
 (0)