Fix workflow summary step output debugging
All checks were successful
Auto-Sort Files / auto-sort (push) Successful in 6s
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:
@@ -119,7 +119,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "## Auto-Sort Results" >> $GITHUB_STEP_SUMMARY
|
echo "## Auto-Sort Results" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $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 "✅ Files were automatically moved to correct directories" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "### Moved Files:" >> $GITHUB_STEP_SUMMARY
|
echo "### Moved Files:" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|||||||
Reference in New Issue
Block a user