diff --git a/sync-files/action.yaml b/sync-files/action.yaml index 3708b119..49b6c9ea 100644 --- a/sync-files/action.yaml +++ b/sync-files/action.yaml @@ -91,10 +91,10 @@ runs: fi rm -rf /tmp/repository - git clone "$repository" /tmp/repository ${git_options[@]} + git clone --depth 1 "$repository" /tmp/repository ${git_options[@]} - for source_file in $(yq ".files[].source" /tmp/repo-config.yaml); do - yq ".files[] | select(.source == \"$source_file\")" /tmp/repo-config.yaml > /tmp/file-config.yaml + for file_config in $(yq ".files[].dest" /tmp/repo-config.yaml); do + yq ".files[] | select(.dest == \"$file_config\")" /tmp/repo-config.yaml > /tmp/file-config.yaml source_path=$(yq ".source" /tmp/file-config.yaml) dest_path=$(yq ".dest" /tmp/file-config.yaml)