Skip to content

Commit

Permalink
Use 3.x as default upper bound
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti committed Aug 31, 2024
1 parent 0486cbc commit b35253c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b35253c

Please sign in to comment.