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 }}