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
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user