[skip ci] Delete workflow runs

This commit is contained in:
Xwite 2023-03-13 21:42:28 +08:00
parent efc5bfd1e6
commit 78578207ce
3 changed files with 15 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function checkVersionExit() {
if [[ $max_offset > $offset ]]; then
offset=$(expr $offset + 1)
echo "retry with offset $offset"
fetchVersion
fetchExitVersion
else
exit
fi

View File

@ -40,3 +40,10 @@ jobs:
*cronet.json
*updateLog.md
gradle.properties
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 2
keep_minimum_runs: 3

View File

@ -103,6 +103,13 @@ jobs:
with:
name: legado.${{ env.product }}.${{ env.type }}
path: ${{ github.workspace }}/apk/*.apk
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 30
lanzou:
needs: [ prepare, build ]