Skip to content

Fix get_entity_name #2388

Fix get_entity_name

Fix get_entity_name #2388

name: Clang-Format Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
do_formatting:
description: "Run clang-format inplace formatting and commit the result"
required: true
default: "false"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.16.2
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.do_formatting != 'true' }}
with:
source: "src"
extensions: "inl,h,hpp,cpp"
exclude: "./src/game_api/lua_libs"
clangFormatVersion: 16
- uses: DoozyX/clang-format-lint-action@v0.16.2
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.do_formatting == 'true' }}
with:
source: "src"
extensions: "inl,h,hpp,cpp"
exclude: "./src/game_api/lua_libs"
clangFormatVersion: 16
inplace: true
- uses: EndBug/add-and-commit@v4
if: ${{ success() && github.event_name == 'workflow_dispatch' && github.event.inputs.do_formatting == 'true' }}
with:
author_name: Clang-Format Bot
author_email: fake.user@github.com
message: "Automated clang-format changes"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}