Prohibit editing documents in the trash #1282
Workflow file for this run
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: ClangFormat | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: {} | |
jobs: | |
check: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Sources for push event | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/checkout@master | |
with: | |
token: ${{ secrets.ACTION_RUNNER }} | |
submodules: recursive | |
- name: Checkout Sources for pull request event | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/checkout@master | |
- name: Running clang-format | |
uses: DoozyX/[email protected] | |
with: | |
source: 'src' | |
exclude: 'src/3rd_party src/cloud src/corelib/utils/3rd_party' | |
extensions: 'h,hpp,c,cpp' | |
clangFormatVersion: 12 |