Skip to content

Commit

Permalink
Fix optimize Flutter SDK release manifest usage
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Apr 28, 2024
1 parent ba40fd6 commit 45d06b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ if [ ! -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
if [ $? -ne 0 ]; then
echo -e "::warning::Failed to fetch Flutter SDK release manifest."
fi
elif [ -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
else
echo "Using cached Flutter SDK release manifest."

fi
if [ -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
# Obtain the base URL and override FLUTTER_RELEASE_BASE_URL
FLUTTER_RELEASE_BASE_URL=$(jq -r ".base_url" "$FLUTTER_RELEASE_MANIFEST_FILE")

Expand All @@ -45,7 +46,7 @@ elif [ -f "$FLUTTER_RELEASE_MANIFEST_FILE" ]; then
FLUTTER_DOWNLOAD_URL="${FLUTTER_RELEASE_BASE_URL}/${FLUTTER_RELEASE_ARCHIVE}"
fi
else
echo -e "::warning::Switched to using default fallback download strategy."
echo -e "::warning::Flutter SDK release manifest not found. Switched to using default fallback download strategy."
fi

# Apple Intel or Apple Silicon
Expand Down

0 comments on commit 45d06b0

Please sign in to comment.