diff --git a/.github/workflows/cpp-check.yaml b/.github/workflows/cpp-check.yaml index e8b9167a55895..d45ae8850d18b 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 status 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