What should I do if discharge is coming out of a foot wound?

See your doctor. this can represent the start or active infection.
See a doctor. The discharge may be an indication of infection. It needs to be checked.
Dressings. Wounds are going to drain. Typically normal drainage is clear to an amber color and a thin fluid. If the drainage is thick and opaque or more solid colored then you may be developing an infection. Check with your doctor or go to a wound center.