Skip to content

Commit

Permalink
Auto-commit clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Sep 17, 2024
1 parent 4cf089b commit 2780024
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: extractions/setup-just@v2
with:
- name : Install just
uses: extractions/setup-just@v2
with:
just-version: 1.26.0
- uses: actions/checkout@v4
- name: run format check on the C++
run: just install-denv init format-cpp --verbose -Werror --dry-run

- uses: actions/checkout@v4
- name: Run auto-formatting on the C++
run: |
just install-denv init format-cpp --verbose -Werror
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "Apply clang-format"
git push
2 changes: 1 addition & 1 deletion Ecal/src/Ecal/EcalVetoProcessor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void EcalVetoProcessor::produce(framework::Event &event) {
}
}
}

std::cout << "Something for clang-format to fix";
if (verbose_) {
ldmx_log(debug) << " Get projected trajectories for electron and photon";
}
Expand Down

0 comments on commit 2780024

Please sign in to comment.