diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 3872524..2f777a2 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -13,7 +13,7 @@ // it's move to a project column for the first time - being assigned to the project // and showing in project's backlog is not enough. -module.exports = ({github, context}) => { +module.exports = async ({github, context}) => { const restapi = github.rest diff --git a/.github/workflows/assign-milestones.yml b/.github/workflows/assign-milestones.yml index afa468c..f300639 100644 --- a/.github/workflows/assign-milestones.yml +++ b/.github/workflows/assign-milestones.yml @@ -43,4 +43,4 @@ jobs: // current working directory. const script = require('./.github/workflows/assign-milestones.js') - script({github, context}) + await script({github, context})