Skip to content

Commit ac37ead

Browse files
committed
fix(workflows): resolve GitHub Actions build failures
- Fix path duplication in generate-visual-reports.cjs script - Correct directory creation in repository-health-monitor.yml workflow - Ensure reports/automated directory is created before file operations - Update console logging to reflect correct file paths These fixes resolve the build failures affecting all GitHub Actions workflows.
1 parent eedc452 commit ac37ead

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/repository-health-monitor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ jobs:
495495
- name: Generate repository health report
496496
run: |
497497
echo "📊 Generating repository health report..."
498-
mkdir -p reports
498+
mkdir -p reports/automated
499499
500500
# Create health report
501501
cat > reports/automated/health-report.md << EOF

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/utils/generate-visual-reports.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ ${generateTrendChart(responseTimeData, 'Daily Response Times (Last 7 days)', 'ms
350350
// Generate and write health report
351351
const healthReport = this.generateHealthReport();
352352
fs.writeFileSync(
353-
path.join(this.reportsDir, 'automated', 'health-report.md'),
353+
path.join(this.reportsDir, 'health-report.md'),
354354
healthReport
355355
);
356356

@@ -363,7 +363,7 @@ ${generateTrendChart(responseTimeData, 'Daily Response Times (Last 7 days)', 'ms
363363

364364
console.log('✅ Enhanced reports generated successfully!');
365365
console.log('📁 Location:', this.reportsDir);
366-
console.log('📊 Files: automated/health-report.md, automated/status-dashboard.md');
366+
console.log('📊 Files: health-report.md, status-dashboard.md');
367367
} catch (error) {
368368
console.error('❌ Error generating reports:', error.message);
369369
process.exit(1);

0 commit comments

Comments
 (0)