mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 06:40:49 +08:00
翻译工作流文件中的描述为中文
This commit is contained in:
16
.github/workflows/_delete-workflow-runs.yaml
vendored
16
.github/workflows/_delete-workflow-runs.yaml
vendored
@ -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 }}
|
||||
|
Reference in New Issue
Block a user