From d0f33a9953125f6fe95d94240390b52bcb1bcb44 Mon Sep 17 00:00:00 2001 From: burzekj Date: Tue, 12 Dec 2023 14:08:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fixed=20github=20action=20bug=20?= =?UTF-8?q?related=20to=20black=20formatter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 006f22e39..865087f6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,18 +64,6 @@ jobs: run: | pip install black black --check . - continue-on-error: true - - - name: Commit Black changes to the pull request - if: ${{ always() && steps.blackCheck.outcome == 'failure' }} - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY - black . - git checkout $GITHUB_HEAD_REF - git commit -am "🎨 Format Python code with Black" - git push - name: Test with pytest if: always()