On 23 January 2024, Yali scored the only goal in a 1–0 victory over Algeria during the Africa Cup of Nations, which granted his country their first win in the competition, and first ever qualification to the knockout phase as one of the best third-placed teams.[4]