From 24bce3297af6a862b157959418942a09ee26293d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 12 Sep 2023 09:20:32 +0200 Subject: [PATCH] fix: update-deps CI --- .github/workflows/update-deps.yml | 3 ++- flutter/scripts/generate-cocoa-bindings.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml index 233afc3d69..953c63cf49 100644 --- a/.github/workflows/update-deps.yml +++ b/.github/workflows/update-deps.yml @@ -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: @@ -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 }} diff --git a/flutter/scripts/generate-cocoa-bindings.sh b/flutter/scripts/generate-cocoa-bindings.sh index d381b02497..d40dd41fd5 100755 --- a/flutter/scripts/generate-cocoa-bindings.sh +++ b/flutter/scripts/generate-cocoa-bindings.sh @@ -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")/../"