mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
Merge pull request #1689 from o0HalfLife0o/master
自动更新cronet 移动到 cronet.yml 并自动创建pr
This commit is contained in:
2
.github/scripts/cronet.sh
vendored
2
.github/scripts/cronet.sh
vendored
@@ -49,3 +49,5 @@ else
|
||||
chmod +x gradlew
|
||||
./gradlew app:downloadCronet
|
||||
fi
|
||||
|
||||
rm -f cronet lastest_cronet_version stable_page
|
||||
40
.github/workflows/cronet.yml
vendored
Normal file
40
.github/workflows/cronet.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Update Cronet
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: 0 0 * * *
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Download Lastest Cronet jar
|
||||
run: |
|
||||
echo "获取cronet最新版本"
|
||||
source .github/scripts/cronet.sh
|
||||
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
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
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
|
||||
|
||||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build and Release
|
||||
name: Release Build
|
||||
|
||||
on:
|
||||
# push:
|
||||
@@ -37,17 +37,6 @@ jobs:
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Download Lastest Cronet jar
|
||||
run: |
|
||||
echo "获取cronet最新版本"
|
||||
source .github/scripts/cronet.sh
|
||||
git add *cronet*jar
|
||||
git add *cronet.json
|
||||
git add gradle.properties
|
||||
git add *updateLog.md
|
||||
git commit -m "bump cronet version: $lastest_cronet_version" -m "changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/$current_cronet_version..$lastest_cronet_version)"
|
||||
git push origin master
|
||||
|
||||
- name: Release Apk Sign
|
||||
run: |
|
||||
echo "给apk增加签名"
|
||||
|
||||
Reference in New Issue
Block a user