Skip to content

Commit 7bf195f

Browse files
committed
Improve comments
1 parent 620f8d7 commit 7bf195f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ if [[ $FLUTTER_VERSION == "latest" ]]; then
3434
__HASH=$(jq -r ".current_release.${FLUTTER_CHANNEL}" "$FLUTTER_RELEASE_MANIFEST_FILE")
3535
__QUERY="select(.hash == \"${__HASH}\" and .dart_sdk_arch == \"${FLUTTER_ARCH}\")"
3636

37-
# Find the version with matching architecture
37+
# Find the version with matching current release hash and architecture
38+
# If no matching version is found, try to find the version with matching channel and architecture instead
3839
FLUTTER_VERSION=$(jq -r ".releases | map(${__QUERY}) | .[0].version" "$FLUTTER_RELEASE_MANIFEST_FILE")
3940
if [ -z "$FLUTTER_VERSION" ] || [ "$FLUTTER_VERSION" == "null" ]; then
4041

0 commit comments

Comments
 (0)