fn run_phase<F>( state: &mut ReleaseState, state_path: &Path, phase: &str, action: F, ) -> Result<()>where F: FnOnce() -> Result<()>,