From c3bf9dee668c02c871987484e71e9576db7b0fcb Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 18 Dec 2024 21:27:51 -0800 Subject: [PATCH] ci: Work around broken ref for Flutter upstream main Fixes #1177. Workaround for: https://github.com/flutter/flutter/issues/160558 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96d9562502..1b0c9cf3d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,11 @@ jobs: TZ=UTC git --git-dir ~/flutter/.git log -1 --format='%h | %ci | %s' --date=iso8601-local echo ~/flutter/bin >> "$GITHUB_PATH" + # The Flutter tool assumes the tip of tree is "upstream/master": + # https://github.com/flutter/flutter/issues/160558 + # TODO(upstream): make workaround unneeded + git --git-dir ~/flutter/.git update-ref refs/remotes/upstream/master origin/main + - name: Download Flutter SDK artifacts (flutter precache) run: flutter precache --universal