Compare commits

...

2 Commits

Author SHA1 Message Date
559ccca3f8 Merge branch 'main' of https://git.b4l.co.th/B4L/b4l-project-template
All checks were successful
Auto-Sort Files / auto-sort (push) Successful in 7s
2025-08-11 13:38:25 +07:00
bb4c82c8c6 Fix workflow for Gitea Actions compatibility
- 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
2025-08-11 13:38:02 +07:00

View File

@@ -115,25 +115,21 @@ jobs:
echo "Pushing to: https://${DOMAIN}/${REPO_PATH} (with authentication)"
git push $PUSH_URL HEAD:${{ github.ref_name }}
- name: Create summary
- name: Log results
run: |
echo "## Auto-Sort Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
# Check if files were moved by looking at the output from sort_files step
FILES_MOVED_OUTPUT="${{ steps.sort_files.outputs.files_moved }}"
echo "Debug: files_moved output = '$FILES_MOVED_OUTPUT'" >> $GITHUB_STEP_SUMMARY
echo "Auto-Sort Results:"
echo "Debug: files_moved output = '$FILES_MOVED_OUTPUT'"
if [ "$FILES_MOVED_OUTPUT" = "true" ]; then
echo "✅ Files were automatically moved to correct directories" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Moved Files:" >> $GITHUB_STEP_SUMMARY
echo "- Datasheet files (DS_*) → docs/datasheets/" >> $GITHUB_STEP_SUMMARY
echo "- Image files (IMG_*) → docs/images/" >> $GITHUB_STEP_SUMMARY
echo "✅ Files were automatically moved to correct directories"
echo "- Datasheet files (DS_*) → docs/datasheets/"
echo "- Image files (IMG_*) → docs/images/"
else
echo " No files needed to be moved - all files are properly organized" >> $GITHUB_STEP_SUMMARY
echo " No files needed to be moved - all files are properly organized"
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Supported Prefixes:" >> $GITHUB_STEP_SUMMARY
echo "- **DS_**: Datasheets (PDF, DOC, DOCX, TXT)" >> $GITHUB_STEP_SUMMARY
echo "- **IMG_**: Images (PNG, JPG, SVG, GIF, PDF, WEBP)" >> $GITHUB_STEP_SUMMARY
echo "Supported Prefixes:"
echo "- DS_: Datasheets (PDF, DOC, DOCX, TXT)"
echo "- IMG_: Images (PNG, JPG, SVG, GIF, PDF, WEBP)"