Merge pull request #2346 from natalie-lang/fix-gcc-14-warnings #6557
This file contains 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: Format | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: install dependencies | |
run: sudo apt-get install -y -q ruby clang-format | |
- name: format | |
run: rake format | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Tim Morgan | |
author_email: [email protected] | |
message: "Format code with clang-format (automated)" |