Skip to content

Update template

Update template #3

Workflow file for this run

name: clang-format
on:
push:
branches: main
paths:
- "**.h"
- "**.cpp"
workflow_dispatch:
jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run clang-format
uses: DoozyX/[email protected]
with:
source: "."
extensions: "h,cpp"
clangFormatVersion: 16
inplace: true
- name: Add & Commit
uses: EndBug/[email protected]
with:
message: "ci: formatting"
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Repository Dispatch
uses: peter-evans/[email protected]
with:
event-type: format-event