Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Revulate authored Oct 17, 2024
1 parent 50abc81 commit a3bfc5f
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down Expand Up @@ -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"
echo "Deployment completed successfully"

0 comments on commit a3bfc5f

Please sign in to comment.