Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Update ClangFormat.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii authored Feb 12, 2024
1 parent fcdf3a2 commit 0d76bfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ClangFormat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Clang Format Checker and Auto-Fixer
on:
pull_request:
branches: [main]
branches:
- main

jobs:
clang-format-checking:
Expand Down Expand Up @@ -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

0 comments on commit 0d76bfb

Please sign in to comment.