Skip to content

Commit 66fcf50

Browse files
Ref(CI): Unify stub update with android update (#5807)
1 parent ccefc24 commit 66fcf50

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/update-deps.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ jobs:
1919
name: Android SDK
2020
ssh-key: ${{ secrets.CI_DEPLOY_KEY }}
2121

22-
android-stubs:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: getsentry/github-workflows/updater@v3
26-
with:
27-
path: scripts/update-android-stubs.sh
28-
name: Android SDK Stubs
29-
ssh-key: ${{ secrets.CI_DEPLOY_KEY }}
30-
3122
cocoa:
3223
runs-on: ubuntu-latest
3324
steps:

scripts/update-android-stubs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ get-repo)
2020
set-version)
2121
newValue="${BASH_REMATCH[1]}$2"
2222
echo "${content/${BASH_REMATCH[0]}/$newValue}" >$file
23+
24+
# Rebuild the stubs jar and JS types
25+
cd ..
26+
yarn build:replay-stubs || true
2327
;;
2428
*)
2529
echo "Unknown argument $1"

scripts/update-android.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
ORIGINAL_DIR=$(cd "$(dirname "$0")" && pwd)
45
cd $(dirname "$0")/../packages/core/android
56
file='build.gradle'
67
content=$(cat $file)
@@ -25,6 +26,10 @@ set-version)
2526
# Update sentry-spotlight
2627
newContent=$(echo "$newContent" | sed -E "s/(io\.sentry:sentry-spotlight:)([0-9\.]+)/\1$2/g")
2728
echo "$newContent" >$file
29+
30+
# Update replay-stubs to match
31+
cd $ORIGINAL_DIR
32+
./update-android-stubs.sh set-version $2
2833
;;
2934
*)
3035
echo "Unknown argument $1"

0 commit comments

Comments
 (0)