legado/.github/workflows/cronet.yml
dependabot[bot] dcc8a57251
Bump actions/checkout from 3 to 4 (#3339)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 20:51:37 +08:00

53 lines
1.3 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@v4
- name: Check Cronet Updates
run: source .github/scripts/cronet.sh
- name: Set up JDK 17
if: ${{ env.cronet == 'ok' }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- 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