From a287789d87f6699a24a23ac355cf42c973ec44ec Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 30 Nov 2024 22:23:44 -0600 Subject: [PATCH] Use a split workflow for clang-tidy-review comments --- .github/workflows/clang-tidy-comments.yml | 20 ++++++++++++++++++++ .github/workflows/clang-tidy-review.yml | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/clang-tidy-comments.yml diff --git a/.github/workflows/clang-tidy-comments.yml b/.github/workflows/clang-tidy-comments.yml new file mode 100644 index 00000000..accdbeca --- /dev/null +++ b/.github/workflows/clang-tidy-comments.yml @@ -0,0 +1,20 @@ +name: Post clang-tidy Review Comments + +on: + workflow_run: + workflows: ["clang-tidy-review"] + types: + - completed + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Post Comments + uses: ZedThree/clang-tidy-review/post@v0.20.1 + with: + lgtm_comment_body: '' + annotations: false + max_comments: 25 + num_comments_as_exitcode: false diff --git a/.github/workflows/clang-tidy-review.yml b/.github/workflows/clang-tidy-review.yml index e2a1d57d..25ec245e 100644 --- a/.github/workflows/clang-tidy-review.yml +++ b/.github/workflows/clang-tidy-review.yml @@ -126,7 +126,7 @@ jobs: --cmake-command='' \ --max-comments=25 \ --lgtm-comment-body='' \ - --split_workflow=false \ + --split_workflow=true \ --annotations=false \ --parallel=0 rsync -avzh --ignore-missing-args clang-tidy-review-output.json ../