ci(cronet):update updateLog.md when cronet is updated

pull/1688/head
Xwite 3 years ago
parent 4a35c78921
commit 6a87f05b46
  1. 1
      .github/scripts/cronet.sh
  2. 1
      .github/workflows/release.yml

@ -44,6 +44,7 @@ if [[ $current_cronet_version == $lastest_cronet_version ]];then
echo "cronet is already latest"
else
sed -i s/CronetVersion=.*/CronetVersion=$lastest_cronet_version/ $path
sed "15a* 更新cronet: $lastest_cronet_version" -i $GITHUB_WORKSPACE/app/src/main/assets/updateLog.md
echo "start download latest cronet"
chmod +x gradlew
./gradlew app:downloadCronet

@ -44,7 +44,6 @@ jobs:
git add *cronet*jar
git add *cronet.json
git add gradle.properties
sed "15a* 更新cronet: $lastest_cronet_version" -i app/src/main/assets/updateLog.md
git add *updateLog.md
git commit -m "bump cronet version: $lastest_cronet_version" -m "changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/$current_cronet_version..$lastest_cronet_version)"
git push origin master

Loading…
Cancel
Save