1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

🔧 Add prefix to Sentry release name

This commit is contained in:
Hugo "ThePooN" Denizart 2022-06-01 17:14:07 +02:00
parent 7da302d707
commit cb37dd74c1
2 changed files with 3 additions and 4 deletions

View File

@ -23,4 +23,4 @@ jobs:
SENTRY_URL: https://sentry.ppy.sh/
with:
environment: production
version: ${{ github.ref }}
version: osu/${{ github.ref_name }}

View File

@ -48,9 +48,8 @@ namespace osu.Game.Utils
options.AutoSessionTracking = true;
options.IsEnvironmentUser = false;
// The reported release needs to match release tags on github in order for sentry
// to automatically associate and track against releases.
options.Release = game.Version.Replace($@"-{OsuGameBase.BUILD_SUFFIX}", string.Empty);
// The reported release needs to match version as reported to Sentry in .github/workflows/sentry-release.yml
options.Release = $"osu/{game.Version.Replace($@"-{OsuGameBase.BUILD_SUFFIX}", string.Empty)}";
});
Logger.NewEntry += processLogEntry;