diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f1f8014c..2d31ed63 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/issue-closed-labeler.yml b/.github/workflows/issue-closed-labeler.yml index aea00db6..5fac55fa 100644 --- a/.github/workflows/issue-closed-labeler.yml +++ b/.github/workflows/issue-closed-labeler.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/issue-labeler.yml b/.github/workflows/issue-labeler.yml index 128a680f..9700db9d 100644 --- a/.github/workflows/issue-labeler.yml +++ b/.github/workflows/issue-labeler.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/labeled-issue-to-project.yml b/.github/workflows/labeled-issue-to-project.yml index ee1fd2f0..37757d2d 100644 --- a/.github/workflows/labeled-issue-to-project.yml +++ b/.github/workflows/labeled-issue-to-project.yml @@ -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 \ No newline at end of file