cronet.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. if: ${{ github.actor == 'gedoor' }}
  10. steps:
  11. - uses: actions/checkout@v3
  12. with:
  13. fetch-depth: 1
  14. - name: Check Cronet Updates
  15. run: |
  16. echo "获取cronet最新版本"
  17. source .github/scripts/cronet.sh
  18. echo "PR_TITLE=Bump cronet from $current_cronet_version to $lastest_cronet_version " >> $GITHUB_ENV
  19. echo "PR_BODY=Changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/$current_cronet_version..$lastest_cronet_version)" >> $GITHUB_ENV
  20. - name: Create Pull Request
  21. uses: peter-evans/create-pull-request@v4
  22. continue-on-error: true
  23. with:
  24. token: ${{ secrets.ACTIONS_TOKEN }}
  25. title: ${{ env.PR_TITLE }}
  26. commit-message: |
  27. ${{ env.PR_TITLE }}
  28. - ${{ env.PR_BODY }}
  29. body: ${{ env.PR_BODY }}
  30. branch: cronet
  31. delete-branch: true
  32. add-paths: |
  33. *cronet*jar
  34. *cronet.json
  35. *updateLog.md
  36. gradle.properties