From 9ef44f710e511efcfe8af3327122366e7d8839db Mon Sep 17 00:00:00 2001 From: ClayMoreBoy Date: Mon, 7 Dec 2020 02:23:23 +0800 Subject: [PATCH] Update delete.yml --- .github/workflows/delete.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/delete.yml b/.github/workflows/delete.yml index 3b36aa695..f2895804d 100644 --- a/.github/workflows/delete.yml +++ b/.github/workflows/delete.yml @@ -11,19 +11,8 @@ name: 删除旧固件 on: - workflow_dispatch: - inputs: - delete-older-workflow: - description: '删除旧工程' - required: false - default: 'true' #删除github空间旧固件(true=开启)(false=关闭) - delete-older-releases: - description: '删除旧的发布' - required: false - default: 'true' #删除旧的发布(true=开启)(false=关闭) - -# schedule: -# - cron: 0 8 */5 * * + schedule: + - cron: 0 8 * * * jobs: del_runs: @@ -33,7 +22,6 @@ jobs: - name: 删除在github空间的老固件 uses: Mattraks/delete-workflow-runs@main - if: (github.event.inputs.delete-older-workflow == 'true' && github.event.inputs.delete-older-workflow != 'false') with: token: ${{ github.token }} repository: ${{ github.repository }} @@ -42,7 +30,6 @@ jobs: - name: 删除自动发布的老固件 uses: dev-drprasad/delete-older-releases@v0.1.0 - if: (github.event.inputs.delete-older-releases == 'true' && github.event.inputs.delete-older-releases != 'false') with: keep_latest: 1 #保留多少个发布不删除 delete_tags: true