mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2026-11-22 10:19:47 -07:00
Fixes deleting too many files
This commit is contained in:
1 parent
062af890e7
commit
60f023a31a
1 file changed
+1
-1
+1
-1
@@ -16,7 +16,7 @@ git clone "https://$API_TOKEN_GITHUB@github.com/$GITHUB_USERNAME/$GITHUB_REPO.gi
|
||||
ls -la "$CLONE_DIR"
|
||||
|
||||
# Copy files into the git and deletes all git
|
||||
find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | xargs rm -rf # delete all files (to handle deletions)
|
||||
find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | grep -v "^$CLONE_DIR$" | xargs rm -rf # delete all files (to handle deletions)
|
||||
|
||||
ls -la "$CLONE_DIR"
|
||||
|
||||
|
||||
Reference in new issue
Block a user