Skip to content

Commit 4b9bc16

Browse files
committed
action: 在发布NightlyRelease时删除之前的文件
1 parent 7fb8c4a commit 4b9bc16

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/nightly-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
# Can Can Need Result
5656
ls -l
5757
58+
# 这一步是为了删除之前的文件
59+
- name: Delete Old Release
60+
# 使用 || true 忽略错误,防止第一次运行时因为没有 release 而报错
61+
run: gh release delete latest-dev --cleanup-tag -y || true
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
5865
- name: Update Nightly Release
5966
uses: softprops/action-gh-release@v2
6067
with:

0 commit comments

Comments
 (0)