Skip to content

Add test build workflow #18

Add test build workflow

Add test build workflow #18

Workflow file for this run

name: Format
on:
push:
branches: main
paths:
- "**.json"
- "**.yml"
repository_dispatch:
types: format-event
workflow_dispatch:
permissions:
contents: write
jobs:
maintenance:
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: Run Prettier
uses: actionsx/prettier@v3
with:
args: --write "${{ github.workspace }}/*.json"
- name: Add & Commit
uses: EndBug/[email protected]
with:
message: "ci: formatting"
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}