cronet.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Update Cronet
  2. on:
  3. schedule:
  4. - cron: 0 0 * * *
  5. workflow_dispatch:
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. with:
  12. fetch-depth: 1
  13. - name: Download Lastest Cronet jar
  14. run: |
  15. echo "获取cronet最新版本"
  16. source .github/scripts/cronet.sh
  17. echo "PR_TITLE=Bump cronet from $current_cronet_version to $lastest_cronet_version " >>$GITHUB_ENV
  18. echo "PR_BODY=Changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/$current_cronet_version..$lastest_cronet_version)" >>$GITHUB_ENV
  19. - name: Create Pull Request
  20. uses: peter-evans/create-pull-request@v3
  21. continue-on-error: true
  22. with:
  23. token: ${{ secrets.ACTIONS_TOKEN }}
  24. title: ${{ env.PR_TITLE }}
  25. commit-message: |
  26. ${{ env.PR_TITLE }}
  27. - ${{ env.PR_BODY }}
  28. body: ${{ env.PR_BODY }}
  29. branch: cronet
  30. delete-branch: true
  31. add-paths: |
  32. *cronet*jar
  33. *cronet.json
  34. *updateLog.md
  35. gradle.properties