mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2026-01-11 05:51:43 -07:00
Fixes deleting too many files
This commit is contained in:
@@ -16,7 +16,7 @@ git clone "https://$API_TOKEN_GITHUB@github.com/$GITHUB_USERNAME/$GITHUB_REPO.gi
|
|||||||
ls -la "$CLONE_DIR"
|
ls -la "$CLONE_DIR"
|
||||||
|
|
||||||
# Copy files into the git and deletes all git
|
# 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"
|
ls -la "$CLONE_DIR"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user