-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
762fec7
commit 9ef44f7
Showing
1 changed file
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
if: (github.event.inputs.delete-older-releases == 'true' && github.event.inputs.delete-older-releases != 'false') | ||
with: | ||
keep_latest: 1 #保留多少个发布不删除 | ||
delete_tags: true | ||
|