diff --git a/action.yml b/action.yml index 7adcdde..ab05405 100644 --- a/action.yml +++ b/action.yml @@ -60,21 +60,8 @@ runs: export GIT_SSH_COMMAND='ssh -i ~/.ssh/ssh_key -o IdentitiesOnly=yes' git clone "ssh://aur@aur.archlinux.org/$pkgbase.git" aur - find aur -maxdepth 1 -type f \ - | while read file - do - echo "Removing old file $file ..." - rm -f "$file" - done - git ls-tree --name-only HEAD \ - | while read file - do - if [ -f "$file" ] - then - echo "Copying new file $file ..." - cp "$file" aur - fi - done + find aur -maxdepth 1 -type f | (set -x; while read file; do rm -f "$file"; done) + find . -maxdepth 1 -type f | (set -x; while read file; do cp "$file" aur; done) cd aur git add . git config user.name "${{github.event.head_commit.committer.name}}"