Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andremion committed Dec 20, 2024
1 parent 859074a commit 887c45a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sdk-size-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
# Calculate sizes from the .aar files and save them into a temporary JSON file
# so it can be exported for the next job step
for module in $MODULES; do
size=$(du -k $sdk/build/outputs/aar/*.aar | awk '{print $1}')
jq -c --arg sdk "$sdk" --arg size "$size" '. + {($sdk): ($size | tonumber)}' pr_sdk_sizes.json > temp.json && mv temp.json pr_sdk_sizes.json
size=$(du -k $module/build/outputs/aar/*.aar | awk '{print $1}')
jq -c --arg sdk "$module" --arg size "$size" '. + {($sdk): ($size | tonumber)}' pr_sdk_sizes.json > temp.json && mv temp.json pr_sdk_sizes.json
done
echo "PR_SDK_SIZES=$(cat pr_sdk_sizes.json)" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-sdk-sizes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
fi
# Update JSON
jq --arg module "$module" --arg variant "$variant" --arg size $size \
jq --arg module "$module" --arg variant "$variant" --arg size "$size" \
'.[$variant][$module] = ($size | tonumber)' stream-chat-android.json > temp.json && mv temp.json stream-chat-android.json
done
done
Expand Down

0 comments on commit 887c45a

Please sign in to comment.