Fix GitHub Actions failures and implement modern dashboard design#2
Conversation
Co-authored-by: fzozyurt <25354584+fzozyurt@users.noreply.github.com>
Co-authored-by: fzozyurt <25354584+fzozyurt@users.noreply.github.com>
fzozyurt
left a comment
There was a problem hiding this comment.
You should test all GitAction Workflows, none of them should give an error. received error: Run git config --global user.name 'github-actions[bot]'
From https://github.com/fzozyurt/BookStoresDatasets
- branch main -> FETCH_HEAD
- [new branch] main -> origin/main
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
Co-authored-by: fzozyurt <25354584+fzozyurt@users.noreply.github.com>
Fixed the divergent branches issue in all GitHub Actions workflows. Added |
🔧 Problem Statement
The repository was experiencing persistent failures in GitHub Actions workflows for BKM and KY scrapers, specifically during the Git commit phase. Additionally, the weekly dashboard generation was failing, and the UI needed modernization for better user experience.
🚀 Issues Fixed
1. Git Commit Phase Failures
Problem: BKM and KY workflows were failing during Git commit operations due to missing files and improper error handling.
Solution: Implemented conditional Git commit logic with proper validation:
2. Python Import Errors
Problem: Scripts were failing due to incorrect module imports and Kaggle API authentication during import.
Solution: Fixed import paths and made Kaggle API loading conditional:
3. Weekly Dashboard Generation Issues
Problem: Matrix strategy in report generation was causing conflicts and failures.
Solution: Refactored to sequential processing and improved error handling:
🎨 Modern Dashboard Implementation
Implemented a complete modern UI overhaul with Next.js-inspired design:
Key Features
Visual Improvements
📱 Screenshot
The new design features a beautiful gradient background, modern card layouts, and improved typography that makes the dashboard more visually appealing and user-friendly.
🔧 Technical Improvements
Workflow Enhancements
Code Quality
.gitignorefile📁 Files Changed
.github/workflows/BKM_Kitap.yml- Fixed Git commits and error handling.github/workflows/Kitap_Yurdu.yml- Fixed Git commits and error handling.github/workflows/generate_report.yml- Improved report generation workflowScripts/dataset_upload.py- Fixed imports and Kaggle API handlingScripts/dataset_download.py- Fixed imports and conditional loadingScripts/report.py- Added modern dashboard generationScripts/modern_dashboard.py- New modern dashboard templates (NEW)index.html- Enhanced with modern design.gitignore- Added to exclude unnecessary files (NEW)🧪 Testing
📊 Impact
This update resolves the persistent GitHub Actions failures and provides a modern, professional-looking dashboard interface. The workflows should now run smoothly without commit phase errors, and users will enjoy a significantly improved visual experience when viewing reports.
The repository now features:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.