Skip to content

Commit

Permalink
LineageOTA: add a commit for new release before uploading
Browse files Browse the repository at this point in the history
this properly links the uploaded release to a commit with accurate message
  • Loading branch information
SGCMarkus committed Nov 20, 2020
1 parent 18f1e0b commit f860ccd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gen_ota_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit f860ccd

Please sign in to comment.