title: How to get file names of files updated by commit in GitHub Actions?
body: <p>In a GitHub Actions workflow, we tried multiple times to get the file names of the files changed by the pushed commit with this command <code>run: git diff-tree --no-commit-id --name-only -r ${{ github.sha }}</code>. But it always returns only the following log not giving a file name or a file name with path. See the below image.</p>
  <p><a href="https://i.stack.imgur.com/98QNR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/98QNR.png" alt="GitHub Actions run log" /></a></p>
  <p><strong>About Runner type</strong>: <code>ubuntu-latest</code>, which is not a self-hosted runner.</p>