From e72a150f1bebc74b91afca0c407240c07e37ded7 Mon Sep 17 00:00:00 2001 From: hezko Date: Mon, 18 Nov 2024 12:46:05 +0200 Subject: [PATCH] try to commit too --- .github/workflows/black.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 9f87c231..a9d9d522 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -9,4 +9,14 @@ jobs: - uses: actions/checkout@v4 - uses: psf/black@stable with: - options: "-v" \ No newline at end of file + options: "-v" + - name: checkout + run: | + # Check if black made any changes + git diff --exit-code || ( + git config user.name "github-actions[bot]" && + git config user.email "github-actions[bot]@users.noreply.github.com" && + git add . && + git commit -m "Format code with black" && + git push + ) \ No newline at end of file