Fix workflow summary step output debugging
All checks were successful
Auto-Sort Files / auto-sort (push) Successful in 6s

- 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
This commit is contained in:
2025-08-11 13:32:36 +07:00
parent dc9c2f6c4d
commit 284d715aa3

View File

@@ -119,7 +119,12 @@ jobs:
run: |
echo "## Auto-Sort Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ steps.sort_files.outputs.files_moved }}" = "true" ]; then
# 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
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