From a4248695f885f24de8b98a3ebed6ae3690f8e508 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Wed, 22 May 2024 15:26:58 -0400 Subject: [PATCH 1/4] set fetch depth --- .github/workflows/shorebird_ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/shorebird_ci.yml b/.github/workflows/shorebird_ci.yml index 65821c645ac1d..ce36d77819cc1 100644 --- a/.github/workflows/shorebird_ci.yml +++ b/.github/workflows/shorebird_ci.yml @@ -44,6 +44,8 @@ jobs: steps: - name: 📚 Git Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: 🎯 Setup Dart uses: dart-lang/setup-dart@v1 From a636e08cf12b2f0b30532f619aa8b2c2aaa37848 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Wed, 22 May 2024 15:31:33 -0400 Subject: [PATCH 2/4] fetch tags instead of changing fetch depth --- .github/workflows/shorebird_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/shorebird_ci.yml b/.github/workflows/shorebird_ci.yml index ce36d77819cc1..82fb64315394d 100644 --- a/.github/workflows/shorebird_ci.yml +++ b/.github/workflows/shorebird_ci.yml @@ -45,7 +45,7 @@ jobs: - name: 📚 Git Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-tags: true - name: 🎯 Setup Dart uses: dart-lang/setup-dart@v1 From 0d7bf1c6b384e76c61ec922775f90f6a2dc1056a Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Wed, 22 May 2024 15:33:28 -0400 Subject: [PATCH 3/4] revert to setting fetch-depth to 0 --- .github/workflows/shorebird_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/shorebird_ci.yml b/.github/workflows/shorebird_ci.yml index 82fb64315394d..ce36d77819cc1 100644 --- a/.github/workflows/shorebird_ci.yml +++ b/.github/workflows/shorebird_ci.yml @@ -45,7 +45,7 @@ jobs: - name: 📚 Git Checkout uses: actions/checkout@v4 with: - fetch-tags: true + fetch-depth: 0 - name: 🎯 Setup Dart uses: dart-lang/setup-dart@v1 From 5376ee036ab6cbd08c00b547b7948f261eaeb042 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Wed, 22 May 2024 15:39:50 -0400 Subject: [PATCH 4/4] add comment --- .github/workflows/shorebird_ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/shorebird_ci.yml b/.github/workflows/shorebird_ci.yml index ce36d77819cc1..ea4f27f0361bd 100644 --- a/.github/workflows/shorebird_ci.yml +++ b/.github/workflows/shorebird_ci.yml @@ -45,6 +45,7 @@ jobs: - name: 📚 Git Checkout uses: actions/checkout@v4 with: + # Fetch all branches and tags to ensure that Flutter can determine its version fetch-depth: 0 - name: 🎯 Setup Dart