From f860ccdc824e11f7fe23d0497c04f22ac39ca2f6 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Fri, 20 Nov 2020 20:07:35 +0100 Subject: [PATCH] LineageOTA: add a commit for new release before uploading this properly links the uploaded release to a commit with accurate message --- gen_ota_json.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gen_ota_json.sh b/gen_ota_json.sh index 57d1450..de873bd 100755 --- a/gen_ota_json.sh +++ b/gen_ota_json.sh @@ -39,4 +39,7 @@ TAG=$(echo "${DEVICE}-${d}") url="https://github.com/SGCMarkus/Lineage-OTA/releases/download/${TAG}/${FILENAME}" sed -i "s!${oldurl}!\"${url}\",!g" $DEVICE.json +git add $DEVICE.json +git commit -m "Update ${$DEVICE} to ${d}" + hub release create -a ../out/target/product/$DEVICE/$FILENAME -a changelog.txt -m "${TAG}" "${TAG}"