An action that returns the changed files that are still present in the repo, i.e. removed files are not reported. For Pull Requests it will compare the base branch against the current state, for any other type of events it will list of all the git tracked files.
Add the following step to your workflow:
steps:
- name: Changed Files
id: changed-files
uses: sk-/pr-changed-files
- name: List Modified Files
run: echo "${{ steps.changed-files.outputs.files }}" | xargs ls -lh
- name: List Modified Files with spaces
run:
echo "${{ steps.changed-files.outputs.files }}" | tr '\n' '\0' | xargs -0
ls -lh