Skip to content

Commit

Permalink
feat: only keep latest 3 workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonRan committed Oct 19, 2024
1 parent 7602fdd commit 09bb141
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,11 @@ jobs:
files: |
/github/workspace/${{ steps.sign.outputs.signedReleaseFile }}
/github/workspace/${{ env.DEBUG_APK }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2
8 changes: 8 additions & 0 deletions .github/workflows/issue-closed-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ jobs:
with:
github_token: ${{ secrets.BOT_TOKEN }}
labels: Solved

- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2
8 changes: 8 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ jobs:
repo-token: '${{ secrets.BOT_TOKEN }}'
configuration-path: .github/labeler.yml
enable-versioned-regex: 0

- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2
8 changes: 8 additions & 0 deletions .github/workflows/labeled-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ jobs:
project: Distributed Update System 看板
column: 'BUG'
repo-token: '${{ secrets.BOT_TOKEN }}'

- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 2

0 comments on commit 09bb141

Please sign in to comment.