ci(workflows): update build condition to support KSU and Next variants
Modify the build workflow to allow for both KSU and Next variants in the conditional checks. This change enhances flexibility in the build process by accommodating additional variant options, ensuring a more robust workflow.