From a21835b3b7c3eaa1d408624fa41a8904c356b7bf Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 12 Feb 2024 18:30:48 +0100 Subject: [PATCH] Update ClangFormat.yml --- .github/workflows/ClangFormat.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ClangFormat.yml b/.github/workflows/ClangFormat.yml index 6af71b4..c3703b7 100644 --- a/.github/workflows/ClangFormat.yml +++ b/.github/workflows/ClangFormat.yml @@ -24,6 +24,9 @@ jobs: && sudo apt update \ && sudo apt install gh -y + - name: Fetch changes from the remote branch + run: git pull origin $GITHUB_HEAD_REF + - name: Check and Auto-Fix Formatting run: | find . \( -name "*.h" -or -name "*.c" -or -name "*.cpp" -or -name "*.hpp" -or -name "*.cc" -or -name "*.cxx" -or -name "*.hxx" -or -name "*.inl" -or -name "*.ipp" \) \ @@ -36,5 +39,4 @@ jobs: git diff --exit-code || (git add -A && git commit -m "Auto-fix formatting issues") - name: Push changes to the pull request branch - run: | - git push origin HEAD:$GITHUB_HEAD_REF + run: git push origin HEAD:$GITHUB_HEAD_REF