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:
committed by
GitHub
parent
8f9fe6269b
commit
101255d186
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user