From 4a3df28bbf70f1321348a37a8c7f87369e2db476 Mon Sep 17 00:00:00 2001 From: mini2024 Date: Fri, 4 Apr 2025 16:44:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E6=8F=8F=E8=BF=B0=E4=B8=BA?= =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/_delete-workflow-runs.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/_delete-workflow-runs.yaml b/.github/workflows/_delete-workflow-runs.yaml index af16fda..f54d044 100644 --- a/.github/workflows/_delete-workflow-runs.yaml +++ b/.github/workflows/_delete-workflow-runs.yaml @@ -1,20 +1,20 @@ -name: Delete old workflow runs +name: 删除旧的工作流运行 on: workflow_dispatch: inputs: days: - description: 'Days-worth of runs to keep for each workflow' + description: '为每个工作流保留的运行天数' required: true default: '30' minimum_runs: - description: 'Minimum runs to keep for each workflow' + description: '为每个工作流保留的最小运行次数' required: true default: '6' delete_workflow_pattern: - description: 'Name or filename of the workflow (if not set, all workflows are targeted)' + description: '工作流的名称或文件名(如果未设置,则针对所有工作流)' required: false delete_workflow_by_state_pattern: - description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually' + description: '按状态筛选工作流:active, deleted, disabled_fork, disabled_inactivity, disabled_manually' required: true default: "ALL" type: choice @@ -25,7 +25,7 @@ on: - disabled_inactivity - disabled_manually delete_run_by_conclusion_pattern: - description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success' + description: '根据结论删除运行:action_required, cancelled, failure, skipped, success' required: true default: "ALL" type: choice @@ -38,7 +38,7 @@ on: - skipped - success dry_run: - description: 'Logs simulated changes, no deletions are performed' + description: '记录模拟的更改,不执行任何删除操作' required: false jobs: @@ -48,7 +48,7 @@ jobs: actions: write contents: read steps: - - name: Delete workflow runs + - name: 删除工作流运行 uses: Mattraks/delete-workflow-runs@v2 with: token: ${{ github.token }}