From db49dd0959260fa99ea5758bec2b8238bd679813 Mon Sep 17 00:00:00 2001 From: 2byrds <2byrds@gmail.com> Date: Thu, 18 Jul 2024 20:33:17 -0400 Subject: [PATCH] auto-format on check failure Signed-off-by: 2byrds <2byrds@gmail.com> --- .github/workflows/python-formatting.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-formatting.yml b/.github/workflows/python-formatting.yml index f58710ee..f69ffd18 100644 --- a/.github/workflows/python-formatting.yml +++ b/.github/workflows/python-formatting.yml @@ -25,4 +25,8 @@ jobs: run: pip install black - name: Run black - run: black --check . \ No newline at end of file + run: black --check . + + - name: Run black to auto-format + if: failure() + run: black . \ No newline at end of file