Skip to content

Commit 2894f7c

Browse files
authored
Update ci.yml
Signed-off-by: Yuwei Ba <dev@watfaq.com>
1 parent 57b6da6 commit 2894f7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,9 @@ jobs:
346346
with:
347347
github-token: ${{secrets.GITHUB_TOKEN}}
348348
script: |
349+
const tag = 'latest'
349350
const { owner, repo } = context.repo
350-
const { data: { id } } = await github.repos.getReleaseByTag({ owner, repo, 'latest' })
351+
const { data: { id } } = await github.repos.getReleaseByTag({ owner, repo, tag })
351352
await github.repos.deleteRelease({ owner, repo, release_id: id })
352353
353354
- name: Update Latest Tag

0 commit comments

Comments
 (0)