ci: Make builds release-channel aware. Add support for scheduled beta builds (#7323)

ADO-1121

---------

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-10-03 20:49:04 +02:00
committed by GitHub
parent 8f9fe6269b
commit 101255d186
13 changed files with 78 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
import type { WorkflowTitleStatus } from '@/Interface';
import { useSettingsStore } from '@/stores';
export function useTitleChange() {
const prependBeta = (title: string) => {
const settingsStore = useSettingsStore();
return settingsStore.settings.isBetaRelease ? `[BETA] ${title}` : title;
const { releaseChannel } = settingsStore.settings;
return releaseChannel === 'stable' ? title : `[${releaseChannel.toUpperCase()}] ${title}`;
};
const titleSet = (workflow: string, status: WorkflowTitleStatus) => {