From fd4d8d3146e5a8cfe70ce9c7a769cc7776498ea7 Mon Sep 17 00:00:00 2001 From: Lyndon Maydwell Date: Tue, 16 Apr 2024 09:47:34 +1000 Subject: [PATCH] different listing logic --- .github/workflows/registry-updates.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/registry-updates.yaml b/.github/workflows/registry-updates.yaml index 7c6a0326..2b59281c 100644 --- a/.github/workflows/registry-updates.yaml +++ b/.github/workflows/registry-updates.yaml @@ -29,7 +29,8 @@ jobs: id: list_files run: | if [ "${{ steps.check_first_commit.outputs.first_commit }}" == "true" ]; then - git ls-tree --name-only -r ${{ github.sha }} > changed_files.txt + git log --pretty=format:'' --name-only --max-parents=0 ${{ github.sha }} > changed_files.txt else git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt fi +