From b35253c166a5755305a5ef96b32f284c4edab8a7 Mon Sep 17 00:00:00 2001 From: fujidaiti Date: Sat, 31 Aug 2024 18:08:33 +0900 Subject: [PATCH] Use 3.x as default upper bound --- .github/workflows/code_check.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/code_check.yaml b/.github/workflows/code_check.yaml index 6699b84..421e8ed 100644 --- a/.github/workflows/code_check.yaml +++ b/.github/workflows/code_check.yaml @@ -36,6 +36,10 @@ jobs: sdk_constraint=$(cat pubspec.yaml | yq .environment.flutter) lowest=$(echo "$sdk_constraint" | grep -oP '(?<=\>=)[0-9]+\.[0-9]+\.[0-9]+' | head -1) highest=$(echo "$sdk_constraint" | grep -oP '(?<=\<)[0-9]+\.[0-9]+\.[0-9]+' | head -1) + # If no upper bound is specified, default to 3.x + if [ -z "$highest" ]; then + highest="3.x" + fi echo "lowest=$lowest" >> "$GITHUB_OUTPUT" echo "highest=$highest" >> "$GITHUB_OUTPUT"