- Replace GITHUB_STEP_SUMMARY with simple echo logging for Gitea compatibility
- Remove GitHub-specific step summary features that don't work in Gitea Actions
- Convert Create summary step to Log results step with console output
- Maintain debug output and step communication for troubleshooting
- Ensure workflow is fully compatible with Gitea Actions environment
- Add debug output to show the value of files_moved from previous step
- Store step output in variable for better debugging and comparison
- Fix issue where Create summary step was always showing empty results
- Ensure proper step output communication between workflow steps
- Add debugging information to troubleshoot step output issues
- Update GITEA-ACTIONS-SETUP.md to document [skip actions] flag usage
- Explain infinite loop prevention using standard Gitea Actions approach
- Remove references to conditional workflow execution based on commit message detection
- Document simplified git configuration using inline -c flags
- Provide clear explanation of how [skip actions] prevents recursive workflow execution
- Remove conditional check based on commit message detection
- Use [skip actions] flag in commit message to prevent workflow recursion
- Simplify git configuration using inline -c flags instead of git config --local
- Combine commit and push steps for cleaner workflow execution
- Follow Gitea Actions best practices for preventing infinite loops
- Maintain all functionality while using standard skip actions approach
- Add condition to skip workflow when triggered by Auto-sort commits
- Use github.event.head_commit.message to detect CI bot commits
- Prevent infinite loop where workflow push triggers another workflow run
- Only run workflow for user commits, not automated CI commits
- Maintains functionality while preventing recursive execution
- Replace mv with git mv to preserve git file tracking
- Remove unnecessary git add step since git mv automatically stages changes
- Fix issue where moved files appeared as deleted in git status
- Ensure proper git history preservation when files are reorganized
- Files will now show as moved/renamed instead of deleted/added in git log
- Replace hardcoded git user email and name with configurable variables
- Add WORKER_EMAIL and WORKER_USERNAME variables for git commits and authentication
- Update workflow to use vars.WORKER_EMAIL and vars.WORKER_USERNAME
- Use WORKER_USERNAME in push URL authentication instead of hardcoded 'ci-bot'
- Update GITEA-ACTIONS-SETUP.md with instructions for setting up repository variables
- Add variables to setup checklist for complete configuration
- Provide flexibility for different organizations and naming conventions
- Correct URL parsing to properly extract domain and repository path
- Fix malformed push URL that was missing proper formatting
- Add debug logging to show URL components for troubleshooting
- Ensure proper HTTPS authentication URL format: https://user:token@domain/repo.git
- Handle both HTTPS and SSH repository URL formats correctly
- Fix issue where push was failing due to incorrect URL construction
- Replace process substitution with mapfile array approach for better compatibility
- Use mapfile -t to read find results into arrays
- Simplify file processing with standard for loops
- Fix issue where files weren't being detected properly
- Use function return codes to track file movement status
- Ensure FILES_MOVED flag is set correctly when files are actually moved
- More reliable file detection and processing across different bash versions
- Replace pipe-based while loop with process substitution to preserve variable scope
- Use temporary file to track FILES_MOVED status across subshells
- Fix issue where files were moved but commit/push steps were skipped
- Use find with -print0 and while read -d '' for proper handling of filenames with spaces
- Ensure FILES_MOVED flag is properly set when files are actually moved
- Now correctly triggers commit and push steps when files are reorganized
- Update .gitea/workflows/auto-sort-files.yml to dynamically fetch repository URL using git config
- Support both HTTPS and SSH repository URL formats automatically
- Remove hardcoded repository URL for better portability across different repositories
- Add intelligent URL parsing to construct proper authenticated push URL
- Update GITEA-ACTIONS-SETUP.md to document dynamic URL detection feature
- Improve workflow flexibility for template reuse across different projects
- Update README.md clone URL to https://git.b4l.co.th/B4L/b4l-project-template.git
- Update KICAD-PROJECT-TEMPLATE.md clone URL to new repository location
- Ensure all documentation references the correct repository URL
- Add DS_ prefix for datasheets - automatically moved to docs/datasheets/
- Add IMG_ prefix for images - automatically moved to docs/images/
- Update FILE-NAMING-AND-VERSIONING.md with CI auto-sort prefix examples
- Create comprehensive docs/datasheets/README.md with CI auto-sort documentation
- Create comprehensive docs/images/README.md with CI auto-sort documentation
- Add ci/auto-sort-files.yml GitHub Actions workflow for automatic file organization
- Update ci/README.md with complete auto-sort system documentation
- Update main README.md to reference CI auto-sort system
- Enable users to upload files anywhere with correct prefix for automatic organization
- Support multiple file types: PDF, DOC, PNG, JPG, SVG, etc.
- Provide complete CI workflow with commit automation and error handling
- Add example-project_bom_v1.0.0_2024-08-04.csv with complete STM32F401-based design
- Include all requested fields: Designator, Qty, MPN, Manufacturer, Package, Description, RoHS
- Add comprehensive supplier part numbers for Digi-Key, Mouser, and LCSC
- Include additional technical fields: Value, Tolerance, Voltage/Power Rating, Temperature Range
- Add pricing information and datasheet URLs for complete component traceability
- Cover typical hardware components: MCU, power regulation, connectors, passives, LEDs, test points
- Update hardware/bom/README.md with detailed field descriptions and example reference
- Follow file naming conventions with semantic versioning and YYYY-MM-DD date format
- Provide multi-sourcing flexibility for component procurement and PCB assembly services
- Add FILE-NAMING-AND-VERSIONING.md with complete Semantic Versioning 2.0.0 and Harvard Data Management file naming conventions
- Update README.md with file naming standards and semantic versioning workflow
- Update KICAD-PROJECT-TEMPLATE.md with comprehensive file naming examples and git workflow
- Update hardware/bom/README.md with standardized BOM file naming conventions
- Update manufacturing/gerbers/README.md with production-ready Gerber file naming
- Update mechanical/stl/README.md with 3D printing file naming including material suffixes
- Implement YYYY-MM-DD date format and hyphen-separated naming throughout
- Add versioning strategies for hardware, software, and documentation components
- Include git tagging strategy and release management guidelines
- Provide comprehensive examples for all file types and directories
- Refactor mechanical/ directory to support multiple sub-assemblies instead of just enclosures
- Update mechanical/README.md with comprehensive sub-assembly organization examples
- Enhance mechanical/cad/README.md with detailed sub-assembly structure (PCB mounts, sensor housing, connector panels, cooling, etc.)
- Expand mechanical/enclosure/README.md to cover main housing, sub-enclosures, and removable panels
- Improve mechanical/stl/README.md with broader 3D printing categories including tooling, prototyping, and custom components
- Update mechanical/drawings/README.md with comprehensive technical drawing organization for all mechanical components
- Add detailed manufacturing considerations, quality control procedures, and file management guidelines
- Support complex projects with multiple mechanical sub-systems and assemblies
- Add dedicated /kicad/ directory with organized subdirectories for libraries, schematics, gerbers, plots, and backups
- Create comprehensive KiCad 9 library structure (symbols, footprints, 3D models)
- Add manufacturing-ready directories for production files (gerbers, drill, pick-and-place)
- Update all README files with KiCad-specific documentation and workflows
- Add KiCad-optimized .gitignore file for proper version control
- Create KICAD-PROJECT-TEMPLATE.md comprehensive usage guide
- Add hardware assembly documentation and BOM management
- Include detailed manufacturing file generation instructions
- Add docs structure with design-notes and user-manual directories
- Provide complete workflow from design to manufacturing with quality checklists