chore: génère correctement la release Sentry même si slash dans branche

pull/2943/head
Jalil Arfaoui 2024-04-16 18:28:03 +02:00
parent 269ca6fbcc
commit 34aa602666
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ const branch = (mode: string) => getBranch(mode)
const sentryReleaseName = (mode: string) =>
env(mode).VITE_GITHUB_SHA
? `${branch(mode)}-` + env(mode).VITE_GITHUB_SHA?.substring(0, 7)
? `${branch(mode).split('/').at(-1)}-` +
env(mode).VITE_GITHUB_SHA?.substring(0, 7)
: undefined
export default defineConfig(({ command, mode }) => ({