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