2022-03-06 12:44:47 +08:00
name : Update Cronet
on :
schedule :
- cron : 0 0 * * *
workflow_dispatch :
jobs :
build :
runs-on : ubuntu-latest
2022-03-07 21:58:40 +08:00
if : ${{ github.actor == 'gedoor' }}
2022-03-06 12:44:47 +08:00
steps :
2022-08-13 23:37:58 +08:00
- uses : actions/checkout@v3
2022-03-06 12:44:47 +08:00
with :
fetch-depth : 1
2022-10-03 18:51:21 +08:00
- name : Set up Gradle
uses : gradle/gradle-build-action@v2
2022-03-07 21:58:40 +08:00
- name : Check Cronet Updates
2022-03-06 12:44:47 +08:00
run : |
echo "获取cronet最新版本"
source .github/scripts/cronet.sh
2022-03-07 21:58:40 +08:00
echo "PR_TITLE=Bump cronet from $current_cronet_version to $lastest_cronet_version " >> $GITHUB_ENV
echo "PR_BODY=Changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/$current_cronet_version..$lastest_cronet_version)" >> $GITHUB_ENV
2022-03-06 12:44:47 +08:00
- name : Create Pull Request
2022-08-13 23:38:08 +08:00
uses : peter-evans/create-pull-request@v4
2022-03-06 12:44:47 +08:00
continue-on-error : true
with :
token : ${{ secrets.ACTIONS_TOKEN }}
title : ${{ env.PR_TITLE }}
commit-message : |
${{ env.PR_TITLE }}
- ${{ env.PR_BODY }}
body : ${{ env.PR_BODY }}
branch : cronet
delete-branch : true
add-paths : |
*cronet*jar
*cronet.json
*updateLog.md
gradle.properties