Add conditional check to prevent attempting to delete the main branch when promoting, as GitHub does not allow deletion of the default branch remotely. This resolves the workflow failure in the 'Promote and delete source' step.
Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>