From f4fab5115bd8d523bd8a88029c34905c0bed6a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Z=C5=82otnik?= <35463507+bartzlot@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:39:47 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 240fc56..0016c13 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,4 +32,5 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add . git commit -m "style: format Python code with black" || exit 0 + git pull --rebase origin ${{ github.head_ref || github.ref_name }} git push origin HEAD:${{ github.head_ref || github.ref_name }}