Ships that sit in a sector with a resupply depot will be refilled at end of turn if an enemy fleet attacks, causing weapons to be fired and supplies to be depleted.
This is a known bug. I reported it to MM many months ago. Fighters won't resupply for some reason if the RD is on a moon. They resupply just fine if the RD is on the main planet.