We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8296e19 commit 1e42f24Copy full SHA for 1e42f24
scripts/release.js
@@ -352,8 +352,11 @@ async function getCIResult() {
352
`https://api.github.com/repos/vuejs/core/actions/runs?head_sha=${sha}` +
353
`&status=success&exclude_pull_requests=true`,
354
)
355
+ /** @type {{ workflow_runs: ({ name: string, conclusion: string })[] }} */
356
const data = await res.json()
- return data.workflow_runs.length > 0
357
+ return data.workflow_runs.some(({ name, conclusion }) => {
358
+ return name === 'ci' && conclusion === 'success'
359
+ })
360
} catch {
361
console.error('Failed to get CI status for current commit.')
362
return false
0 commit comments