diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46c095a..4341e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,8 +86,11 @@ jobs: git checkout main git reset --hard origin/main else - echo "Cloning repository..." - git clone --branch main $REPO_URL . + echo "Initializing repository..." + git init + git remote add origin $REPO_URL + git fetch origin + git checkout -b main origin/main fi echo "Setting up Python environment..." @@ -168,16 +171,4 @@ jobs: exit 1 fi - echo "Deployment completed successfully" - - - name: Cleanup old backups - run: | - find $HOME/revbot_backup_* -maxdepth 0 -type d -mtime +7 -exec rm -rf {} + - - - name: Notify on success - if: success() - run: echo "Deployment successful" - - - name: Notify on failure - if: failure() - run: echo "Deployment failed" \ No newline at end of file + echo "Deployment completed successfully" \ No newline at end of file