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 run: git diff-tree --no-commit-id -
run: git diff-tree --no-commit-id -
The checkout action creates a shallow clone by default. Use
- uses: actions/checkout@v2 with: # Number of commits to fetch. 0 indicates all history for all branches and tags. # Default: 1 fetch-depth: 2
source: https://github.com/actions/checkout#usage