From 935b3418d6a62cdaac2dcf4f1602ca011e85ba53 Mon Sep 17 00:00:00 2001 From: kminoda <44218668+kminoda@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:22:02 +0900 Subject: [PATCH] Ci/add cpp check (#38) * ci: add cppcheck Signed-off-by: kminoda * apply to fixed file Signed-off-by: kminoda * fix Signed-off-by: kminoda * add rev-list Signed-off-by: kminoda --------- Signed-off-by: kminoda --- .github/workflows/cpp-check.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cpp-check.yaml b/.github/workflows/cpp-check.yaml index e8b9167a55895..0edbfd9fc5e74 100644 --- a/.github/workflows/cpp-check.yaml +++ b/.github/workflows/cpp-check.yaml @@ -17,6 +17,7 @@ jobs: - name: Get changed files id: changed-files run: | + git rev-list --count origin/main..$(git branch --show-current) git fetch origin ${{ github.base_ref }} --depth=1 git diff --name-only origin/${{ github.base_ref }} ${{ github.head_ref }} > changed_files.txt cat changed_files.txt