Skip to content

Commit 593bd14

Browse files
runningcodeclaude
andauthored
fix(ci): Set GITHUB_HEAD_REF in release workflow to fix Sentry upload (#664)
## Summary Sets `GITHUB_HEAD_REF` environment variable to `release` in the Android release build workflow to prevent Sentry upload failures. The release workflow is triggered by the `release` event which doesn't automatically set `GITHUB_HEAD_REF`. This causes the Sentry SDK to fail when uploading release artifacts. By explicitly setting this variable, the upload process completes successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 1d9a9b2 commit 593bd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/android_release_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
4646
REAPER_API_KEY: ${{ secrets.REAPER_API_KEY }}
4747
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_SENTRY_AUTH_TOKEN }}
48+
# Hack to ensure head-ref is set to avoid failing uploading to Sentry
49+
GITHUB_HEAD_REF: release
4850
run: ./gradlew :app:bundlePlayStoreRelease
4951

5052
- name: Convert AAB to APK

0 commit comments

Comments
 (0)