@@ 24,18 24,25 @@ done
shift $((OPTIND-1))
builds=""
+note=""
for target in $*
do
if [ "$builds" = "" ]
then
builds="'${target#sr.ht/}'"
+ note="${target#sr.ht/}"
else
builds="$builds, '${target#sr.ht/}'"
+ if [ "${#note}" -lt 128 ]
+ then
+ note="$note, ${target#sr.ht/}"
+ fi
fi
done
sed "s/packages: \\[\\]/packages: [$builds]/g" < build.yml | jq -sR '{
"manifest": .,
"tags": ["sr.ht-apkbuilds"],
+ "note": "'"$note"'"
}' | curl \
-H Authorization:"token $oauth_token" \
-H Content-Type:application/json \