Skip to content

Commit

Permalink
Fix repo not set in [Nightly Build] workflow (#533) (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuXiu1997 authored Dec 30, 2023
1 parent 1211deb commit 08318ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
import * as core from '@actions/core'
const repo = '${{ github.repository }}'
const listReleases = await $`gh release list -repo ${repo}`
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 @@ -125,6 +125,6 @@ jobs:
core.info(`Tags to delete: [${tagsToDelete.join(', ')}]`)
for (const tag of tagsToDelete) {
await $`gh release delete ${tag} -repo ${repo} --yes`
await $`gh release delete ${tag} --repo ${repo} --yes`
}

0 comments on commit 08318ab

Please sign in to comment.