Some more examples fixes #527
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: clang-format-command | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.cxx' | |
| - '**.hxx' | |
| jobs: | |
| clang-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the pull request branch, also include all history | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| # This also installs git-clang-format | |
| - name: Install clang-format | |
| run: sudo apt install clang-format | |
| - name: Run clang-format | |
| id: format | |
| run: git clang-format origin/${{ github.base_ref }} | |
| - name: Commit to the PR branch | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Apply clang-format changes" |