From 284d715aa3a8392aba1159b39e67ebd32be1f9cd Mon Sep 17 00:00:00 2001 From: grabowski Date: Mon, 11 Aug 2025 13:32:36 +0700 Subject: [PATCH] Fix workflow summary step output debugging - 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 --- .gitea/workflows/auto-sort-files.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/auto-sort-files.yml b/.gitea/workflows/auto-sort-files.yml index 2938e3f..967bf91 100644 --- a/.gitea/workflows/auto-sort-files.yml +++ b/.gitea/workflows/auto-sort-files.yml @@ -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