Skip to content

⬆️ Bump libs/fiction from d01b994 to 2796483 #224

⬆️ Bump libs/fiction from d01b994 to 2796483

⬆️ Bump libs/fiction from d01b994 to 2796483 #224

Workflow file for this run

name: ClangFormat Linter
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
clangformat:
runs-on: ubuntu-latest
steps:
- name: Clone Repository (for push events)
if: ${{ github.event_name == 'push' }}
# regular checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Clone Repository (for PR events)
if: ${{ github.event_name == 'pull_request' }}
# PR checkout
uses: actions/checkout@v3
with:
# checkout the repository the branch is coming from
repository: ${{ github.event.pull_request.head.repo.full_name }}
# prevent checkout in detached head state
ref: ${{ github.event.pull_request.head.ref }}
submodules: recursive
- name: Run ClangFormat
uses: DoozyX/[email protected]
with:
source: 'src test'
exclude: 'lib'
extensions: 'hpp,cpp'
clangFormatVersion: 15
inplace: True
- uses: EndBug/add-and-commit@v9
with:
add: 'src test'
commit: '--signoff'
message: ':art: ClangFormat changes'
author_name: ClangFormat
author_email: [email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}