Update test.yml

This commit is contained in:
TossPig 2022-02-21 17:05:08 +08:00 committed by GitHub
parent 021171410a
commit 905d75ab31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,17 @@
name: 测试构建
on:
- push
push:
workflow_dispatch:
inputs:
days:
days_runs:
description: '保留天数'
required: true
default: 1
default: '1'
minimum_runs:
description: '最小保留数量.'
required: true
default: 6
default: '6'
jobs:
build:
@ -83,6 +82,6 @@ jobs:
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 6
retain_days: ${{ github.event.inputs.days_runs }}
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}