diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f77b63d4..30b8c504 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -126,6 +126,14 @@ sentry { updateSdkVariants.add("beta") } + vcsInfo { + // Set headRef to "release" when running in GitHub release workflow + val eventName = providers.environmentVariable("GITHUB_EVENT_NAME").orNull + if (eventName == "release") { + headRef.set("release") + } + } + debug = true }