Skip to content

Commit

Permalink
Merge pull request #9 from LemLib/ci/clang-format-check
Browse files Browse the repository at this point in the history
👷🏽 Add clang format workflow, fix bug in pr comment workflow
  • Loading branch information
ion098 authored Jul 20, 2024
2 parents 75eb85e + be072f0 commit e5b0c43
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test-clang-format

on:
push:
branches:
- '*'
pull_request:
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: DoozyX/[email protected]
with:
source: './src/gamepad ./include/gamepad'
extensions: 'hpp,cpp'
clangFormatVersion: 17
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
const old_marker = new RegExp(marker.replace("\r\n", "\r?\n")).exec(old_body)?.[0] ?? marker;
body = old_body.split(old_marker)[0] + marker + body;
body = (old_body ?? "").split(old_marker)[0] + marker + body;
await github.request('PATCH /repos/{owner}/{repo}/pulls/{pull_number}', {
owner: owner,
repo: repo,
Expand Down

0 comments on commit e5b0c43

Please sign in to comment.