finished chance based distribution #9
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: clang-format | |
on: | |
push: | |
branches: main | |
paths: | |
- "include/**" | |
- "src/**" | |
- ".clang-format" | |
workflow_dispatch: | |
permissions: write-all | |
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 }} |