Skip to content

Commit

Permalink
Fix repo not set in [Nightly Build] workflow (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuXiu1997 authored Dec 30, 2023
1 parent 1074d7f commit 1211deb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ jobs:
script: |
import * as core from '@actions/core'
const listReleases = await $`gh release list`
const repo = '${{ github.repository }}'
const listReleases = await $`gh release list -repo ${repo}`
const tags = listReleases.stdout.trim().split('\n')
.map(r => r.split('\t')[2])
.filter(t => t.startsWith('0-nightly-build'))
Expand All @@ -124,6 +125,6 @@ jobs:
core.info(`Tags to delete: [${tagsToDelete.join(', ')}]`)
for (const tag of tagsToDelete) {
await $`gh release delete ${tag} --yes`
await $`gh release delete ${tag} -repo ${repo} --yes`
}

0 comments on commit 1211deb

Please sign in to comment.