From 0d76bfb5b9ea06e144e5e3c76c36a8fd30413746 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 12 Feb 2024 18:28:32 +0100 Subject: [PATCH] Update ClangFormat.yml --- .github/workflows/ClangFormat.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ClangFormat.yml b/.github/workflows/ClangFormat.yml index 55b7bc7..6af71b4 100644 --- a/.github/workflows/ClangFormat.yml +++ b/.github/workflows/ClangFormat.yml @@ -1,7 +1,8 @@ name: Clang Format Checker and Auto-Fixer on: pull_request: - branches: [main] + branches: + - main jobs: clang-format-checking: @@ -34,7 +35,6 @@ jobs: git config --local user.name "GitHub Actions" git diff --exit-code || (git add -A && git commit -m "Auto-fix formatting issues") - - name: Push changes to the current branch + - name: Push changes to the pull request branch run: | - current_branch=$(git rev-parse --abbrev-ref HEAD) - git push origin $current_branch + git push origin HEAD:$GITHUB_HEAD_REF