Enable non-const iteration over Options
#851
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: | |
| # Release candidate branches tend to have big PRs which causes all sorts of problems | |
| if: ${{ !endsWith(github.head_ref, '-rc') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the pull request branch, also include all history | |
| - uses: actions/checkout@v5 | |
| 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: | |
| while ! git clang-format origin/${{ github.base_ref }} ; do git add . ; done | |
| - name: Commit to the PR branch | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Apply clang-format changes" |