diff --git a/.github/workflows/cpp-check.yaml b/.github/workflows/cpp-check.yaml index 49b1ed2c60231..e8b9167a55895 100644 --- a/.github/workflows/cpp-check.yaml +++ b/.github/workflows/cpp-check.yaml @@ -18,7 +18,7 @@ jobs: id: changed-files run: | git fetch origin ${{ github.base_ref }} --depth=1 - git diff --name-only ${{ github.base_ref }} ${{ github.head_ref }} > changed_files.txt + git diff --name-only origin/${{ github.base_ref }} ${{ github.head_ref }} > changed_files.txt cat changed_files.txt - name: Run Cppcheck on changed files