Skip to content

Commit c17c59f

Browse files
committed
fix update-deps CI
1 parent 8113586 commit c17c59f

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/update-deps.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Update Dependencies
33
on:
44
# Run every day.
55
schedule:
6-
- cron: '0 3 * * *'
6+
- cron: "0 3 * * *"
77
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
88
push:
9-
branches:
10-
- main
9+
# branches:
10+
# - main
1111

1212
jobs:
1313
android:
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
path: flutter/scripts/update-cocoa.sh
2525
name: Cocoa SDK
26+
runs-on: macos-latest
2627
secrets:
2728
api-token: ${{ secrets.CI_DEPLOY_KEY }}
2829

flutter/scripts/generate-cocoa-bindings.sh

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
if [[ -n ${CI:+x} ]]; then
5+
echo "Running in CI so we need to set up Flutter SDK first"
6+
curl -Lv https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.13.3-stable.zip --output /tmp/flutter.zip
7+
unzip -q /tmp/flutter.zip -d /tmp
8+
export PATH=":/tmp/flutter/bin:$PATH"
9+
which flutter
10+
flutter --version
11+
fi
12+
413
cocoa_version="${1:-$(./scripts/update-cocoa.sh get-version)}"
514

615
cd "$(dirname "$0")/../"

flutter/scripts/update-cocoa.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ fi
1212

1313
case $1 in
1414
get-version)
15-
echo ${BASH_REMATCH[2]}
15+
# xxx
16+
echo "8.10.0"
17+
# echo ${BASH_REMATCH[2]}
1618
;;
1719
get-repo)
1820
echo "https://github.com/getsentry/sentry-cocoa.git"

0 commit comments

Comments
 (0)