1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

adjust filter by arch

This commit is contained in:
Alif Rachmawadi 2023-03-22 08:45:49 +07:00
parent 88cab4064b
commit 1508160852
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ filter_by_channel() {
}
filter_by_arch() {
jq --arg dart_sdk_arch "$1" '[.[] | select(.dart_sdk_arch? | (., "x64") | index($dart_sdk_arch))]'
jq --arg arch "$1" '[.[] | select(.dart_sdk_arch == $arch or ($arch == "x64" and (has("dart_sdk_arch") | not)))]'
}
filter_by_version() {