mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4 to 5. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v4...v5) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: Update Cronet
|
|
|
|
on:
|
|
schedule:
|
|
# 周一北京时间9点
|
|
- cron: 0 1 * * 1
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.repository == 'gedoor/legado' }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check Cronet Updates
|
|
run: source .github/scripts/cronet.sh
|
|
|
|
- uses: gradle/gradle-build-action@v2
|
|
if: ${{ env.cronet == 'ok' }}
|
|
- name: Download Cronet
|
|
if: ${{ env.cronet == 'ok' }}
|
|
run: |
|
|
chmod +x gradlew
|
|
./gradlew app:downloadCronet
|
|
|
|
- name: Create Pull Request
|
|
if: ${{ env.cronet == 'ok' }}
|
|
uses: peter-evans/create-pull-request@v5
|
|
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
|