Skip to content

Commit

Permalink
fix: update-deps CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Sep 12, 2023
1 parent 8113586 commit 24bce32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update Dependencies
on:
# Run every day.
schedule:
- cron: '0 3 * * *'
- cron: "0 3 * * *"
# And on on every PR merge so we get the updated dependencies ASAP, and to make sure the changelog doesn't conflict.
push:
branches:
Expand All @@ -23,6 +23,7 @@ jobs:
with:
path: flutter/scripts/update-cocoa.sh
name: Cocoa SDK
runs-on: macos-latest
secrets:
api-token: ${{ secrets.CI_DEPLOY_KEY }}

Expand Down
9 changes: 9 additions & 0 deletions flutter/scripts/generate-cocoa-bindings.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail

if [[ -n ${CI:+x} ]]; then
echo "Running in CI so we need to set up Flutter SDK first"
curl -Lv https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_3.13.3-stable.zip --output /tmp/flutter.zip
unzip -q /tmp/flutter.zip -d /tmp
export PATH=":/tmp/flutter/bin:$PATH"
which flutter
flutter --version
fi

cocoa_version="${1:-$(./scripts/update-cocoa.sh get-version)}"

cd "$(dirname "$0")/../"
Expand Down

0 comments on commit 24bce32

Please sign in to comment.