diff --git a/.github/actions/clazy/clazy.sh b/.github/actions/clazy/clazy.sh index 8e45665..50e5b1e 100755 --- a/.github/actions/clazy/clazy.sh +++ b/.github/actions/clazy/clazy.sh @@ -135,11 +135,14 @@ echo "$output" | grep -E "$pattern" | while IFS= read -r line; do fi done -warnings_count=$(<"$warnings_file") -errors_count=$(<"$errors_file") - +echo "Debug: warnings count is $warnings_count" >> /tmp/clazy-debug.log +echo "Debug: errors count is $errors_count" >> /tmp/clazy-debug.log +echo "Debug: GITHUB_OUTPUT is $GITHUB_OUTPUT" >> /tmp/clazy-debug.log +echo "Writing to outputs file..." echo "errors-count=$errors_count" >> $GITHUB_OUTPUT echo "warnings-count=$warnings_count" >> $GITHUB_OUTPUT +echo "Debug: Content of GITHUB_OUTPUT:" >> /tmp/clazy-debug.log +cat $GITHUB_OUTPUT >> /tmp/clazy-debug.log if [ "$IGNORE_HEADERS" == "true" ] && [ -n "$DATABASE" ]; then mv $DATABASE/compile_commands_backup.json $DATABASE/compile_commands.json diff --git a/.github/workflows/clazy.yml b/.github/workflows/clazy.yml index 26cab3b..8c9edf6 100644 --- a/.github/workflows/clazy.yml +++ b/.github/workflows/clazy.yml @@ -61,6 +61,13 @@ jobs: install-stable: true database: build + - name: Check debug output + run: | + echo "Debug log contents:" + cat /tmp/clazy-debug.log + echo "GITHUB_OUTPUT contents:" + cat $GITHUB_OUTPUT + - name: Check clazy output run: | echo "Full environment:"