fix: clean untracked files before pull in deployment workflow
This commit is contained in:
@@ -40,6 +40,10 @@ jobs:
|
||||
git stash push -m "Auto-stash before deployment $(date +%Y%m%d-%H%M%S)"
|
||||
fi
|
||||
|
||||
# Clean untracked files to avoid merge conflicts
|
||||
echo "🧹 Cleaning untracked files..."
|
||||
git clean -fd
|
||||
|
||||
git pull origin main
|
||||
|
||||
# Reapply stashed changes if any (optional - comment out if not needed)
|
||||
|
||||
Reference in New Issue
Block a user