From 68f9d27bbdd2cb8774371a6e445d01fb5a4ef741 Mon Sep 17 00:00:00 2001 From: jpolton Date: Fri, 17 Nov 2023 15:18:07 +0000 Subject: [PATCH] Update pylint_checking.yml --- .github/workflows/pylint_checking.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pylint_checking.yml b/.github/workflows/pylint_checking.yml index 574dd142..c6ab0129 100644 --- a/.github/workflows/pylint_checking.yml +++ b/.github/workflows/pylint_checking.yml @@ -31,10 +31,9 @@ jobs: git config --global user.email "bodcsoft@bodc.ac.uk" git config --global author.email "bodcsoft@bodc.ac.uk" git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - git status - git checkout -b $GITHUB_HEAD_REF - git pull --force origin $GITHUB_HEAD_REF - git status + git fetch origin + git checkout $GITHUB_HEAD_REF + git pull echo "NEW_SCORE is greater than THESHOLD_SCORE" echo "Updating THESHOLD_SCORE" echo "$NEW_SCORE" > .pylint-score @@ -44,4 +43,4 @@ jobs: echo "NEW_SCORE is equal to THESHOLD_SCORE" else echo "NEW_SCORE is below the THESHOLD_SCORE. Check your pylint" - fi \ No newline at end of file + fi