Skip to content

Commit

Permalink
Update delete.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ClayMoreBoy authored Dec 6, 2020
1 parent 762fec7 commit 9ef44f7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -42,7 +30,6 @@ jobs:

- name: 删除自动发布的老固件
uses: dev-drprasad/[email protected]
if: (github.event.inputs.delete-older-releases == 'true' && github.event.inputs.delete-older-releases != 'false')
with:
keep_latest: 1 #保留多少个发布不删除
delete_tags: true
Expand Down

0 comments on commit 9ef44f7

Please sign in to comment.