From 8494398cf3edb4783feeb11d97249ac425e5c13a Mon Sep 17 00:00:00 2001 From: Siris <40269790+siriscmv@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:44:31 -0400 Subject: [PATCH] fix: pylint score (#22) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: pylint score * 🚿 --- .github/workflows/pylint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0964a3d0..39ff4121 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -25,8 +25,9 @@ jobs: - name: Analyzing the code with pylint run: | pylint $(git ls-files '*.py') > pylint_output.txt || true - score=$(tail -n 1 pylint_output.txt | awk '{print $2}') # Get the Pylint score - echo "::set-output name=score::$score" # Set the score as output + score=$(grep "Your code has been rated at" pylint_output.txt | sed -E 's/^.*rated at ([0-9.]+).*$/\1/') + echo "score=$score" >> $GITHUB_OUTPUT + echo "::notice::Pylint score: $score/10" - name: Save Pylint score to file run: |