Skip to content

Commit df5d5bb

Browse files
authored
Update build-Immortal.yml
1 parent f3ea838 commit df5d5bb

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

.github/workflows/build-Immortal.yml

+17-21
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,7 @@ jobs:
191191
body_path: release.txt
192192
files: ${{ env.FIRMWARE }}/*
193193

194-
- name: Bark Action
195-
uses: shink/bark-action@v2
196-
with:
197-
# Secret key
198-
key: ${{ secrets.KEY }}
199-
# Bark server hostname
200-
host: ${{ secrets.HOST }}
201-
# Message title
202-
title: ImmortalWrt
203-
# Message body
204-
body: ImmortalWrt's X86 firmware has been compiled successfully!
205-
isArchive: 1
206-
# url: ${{ steps.cowtransfer.outputs.url }}
194+
207195

208196
- name: 删除运行记录
209197
uses: Mattraks/delete-workflow-runs@main
@@ -212,20 +200,28 @@ jobs:
212200
keep_minimum_runs: 1
213201
token: ${{ secrets.GITHUB_TOKEN }}
214202

215-
- name: Remove old Releases
203+
204+
205+
- name: 删除自动发布的旧固件
216206
uses: dev-drprasad/delete-older-releases@master
217207
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
218208
with:
219-
keep_latest: 8
209+
keep_latest: 4
220210
delete_tags: true
221211
env:
222212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223213

224-
- name: 删除自动发布的旧固件
225-
uses: dev-drprasad/delete-older-releases@master
226-
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
214+
- name: Bark Action
215+
uses: shink/bark-action@v2
227216
with:
228-
keep_latest: 4
229-
delete_tags: true
230-
217+
# Secret key
218+
key: ${{ secrets.KEY }}
219+
# Bark server hostname
220+
host: ${{ secrets.HOST }}
221+
# Message title
222+
title: ImmortalWrt
223+
# Message body
224+
body: ImmortalWrt's X86 firmware has been compiled successfully!
225+
isArchive: 1
226+
# url: ${{ steps.cowtransfer.outputs.url }}
231227

0 commit comments

Comments
 (0)