Skip to content

[fix] Local record creation (#31) #27

[fix] Local record creation (#31)

[fix] Local record creation (#31) #27

Workflow file for this run

name: 'Format code'
on:
push:
branches:
- Master
paths:
- '**.c'
- '**.h'
jobs:
clang-format:
name: Format code
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: actions/[email protected]
with:
app-id: ${{ secrets.CONTINUOUS_INTEGRATION_BOT_ID }}
private-key: ${{ secrets.CONTINUOUS_INTEGRATION_BOT_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Install clang-format (formatter tool)
run: sudo apt-get install clang-format
- name: Run clang-format
run: find . -name '*.c' -o -name '*.h' | xargs clang-format -i -style=file
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git diff-index --quiet HEAD || git commit -m "ci: format code"
git push