fix
This commit is contained in:
parent
4611d58702
commit
ef71b6110f
5
.github/workflows/assign-to-project.yml
vendored
5
.github/workflows/assign-to-project.yml
vendored
|
@ -42,10 +42,12 @@ jobs:
|
|||
}
|
||||
|
||||
// find the project
|
||||
console.log('find project...')
|
||||
const projects = await github.projects.listForRepo({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
})
|
||||
console.log(`retrieved ${} projects.`)
|
||||
const project = firstOrDefault(projects, (x) => x.name === project_name)
|
||||
//var project = null
|
||||
//for (const p of projects) {
|
||||
|
@ -57,6 +59,9 @@ jobs:
|
|||
core.setFailed(`Failed to find project "${project_name}".`)
|
||||
return
|
||||
}
|
||||
else {
|
||||
console.log(`project id: ${project.id}`)
|
||||
}
|
||||
|
||||
// find the column
|
||||
const columns = await github.projects.listColumns({
|
||||
|
|
Loading…
Reference in New Issue
Block a user