From 1bfae23d53528bf4c5fb4a3be48847b5274b30a0 Mon Sep 17 00:00:00 2001 From: Atharva Arya Date: Tue, 30 Jul 2024 16:07:00 +0530 Subject: [PATCH] Fix ruff comments issue --- .github/workflows/codestyle.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index bf5ada7cd94..59f5bcf26f7 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -7,7 +7,7 @@ name: codestyle on: push: branches: - - "*" + - "master" pull_request_target: branches: @@ -58,11 +58,21 @@ jobs: - name: Show statistics run: ruff check --statistics --show-fixes . | tee ruff_stats.txt - id: ruff_stats - name: Show entire output - run: ruff check . --output-format=full | tee ruff_full.txt - id: ruff_complete + run: ruff check . --output-format=concise | tee ruff_full.txt + + - name: Statistics output read + id: ruff_stats + uses: juliangruber/read-file-action@v1.0.0 + with: + path: ruff_stats.txt + + - name: Entire output read + id: ruff_complete + uses: juliangruber/read-file-action@v1.0.0 + with: + path: ruff_full.txt - name: Find Comment if: always() && github.event_name == 'pull_request_target'