diff --git a/.gitea/workflows/auto-sort-files.yml b/.gitea/workflows/auto-sort-files.yml index 967bf91..74b9311 100644 --- a/.gitea/workflows/auto-sort-files.yml +++ b/.gitea/workflows/auto-sort-files.yml @@ -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)"