瀏覽代碼

[skip ci]workflow use jdk 17

Xwite 3 年之前
父節點
當前提交
c0ac5f9a83
共有 3 個文件被更改,包括 19 次插入 和 0 次删除
  1. 4 0
      .github/dependabot.yml
  2. 9 0
      .github/workflows/cronet.yml
  3. 6 0
      .github/workflows/release.yml

+ 4 - 0
.github/dependabot.yml

@@ -22,6 +22,10 @@ registries:
     username: dummy
     username: dummy
 
 
 updates:
 updates:
+  - package-ecosystem: gradle
+    directory: "/"
+    schedule:
+      interval: "weekly"
   - package-ecosystem: gradle
   - package-ecosystem: gradle
     directory: "app"
     directory: "app"
     schedule:
     schedule:

+ 9 - 0
.github/workflows/cronet.yml

@@ -12,11 +12,20 @@ jobs:
     if: ${{ github.repository == 'gedoor/legado' }}
     if: ${{ github.repository == 'gedoor/legado' }}
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
+
       - name: Check Cronet Updates
       - name: Check Cronet Updates
         run: source .github/scripts/cronet.sh
         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
       - uses: gradle/gradle-build-action@v2
         if: ${{ env.cronet == 'ok' }}
         if: ${{ env.cronet == 'ok' }}
+
       - name: Download Cronet
       - name: Download Cronet
         if: ${{ env.cronet == 'ok' }}
         if: ${{ env.cronet == 'ok' }}
         run: |
         run: |

+ 6 - 0
.github/workflows/release.yml

@@ -44,6 +44,12 @@ jobs:
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
 
 
+      - name: Set up JDK 17
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: 17
+
       - name: Release Apk Sign
       - name: Release Apk Sign
         run: |
         run: |
           # not use this output
           # not use this output