use gradle/gradle-build-action for actions cache

pull/2412/head
HalfLife 2 years ago
parent aa74875c15
commit d782f30d10
  1. 9
      .github/workflows/release.yml
  2. 8
      .github/workflows/test.yml

@ -46,15 +46,6 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-legado-${{ hashFiles('**/updateLog.md') }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-legado-${{ hashFiles('**/updateLog.md') }}-
- name: Release Apk Sign - name: Release Apk Sign
run: | run: |
echo "::set-output name=KeyStore::yes" echo "::set-output name=KeyStore::yes"

@ -50,14 +50,6 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-legado-${{ hashFiles('**/updateLog.md') }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-legado-${{ hashFiles('**/updateLog.md') }}-
- name: Clear 18PlusList.txt - name: Clear 18PlusList.txt
run: | run: |
echo "清空18PlusList.txt" echo "清空18PlusList.txt"

Loading…
Cancel
Save