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

Feature/license and formatter #2

Feature/license and formatter

Feature/license and formatter #2

Workflow file for this run

name: Formatter
on:
pull_request:
jobs:
formatter:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: clang-format
run: find . -type f \( -name "*.cpp" -or -name "*.hpp" -or -name "*.h" \) -exec clang-format -i -style=file {} \;
- name: auto commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: apply format