From 5013ecba3d6fafb0c1725d0f147b92761b2572c0 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 10 Apr 2024 19:36:46 +0200 Subject: [PATCH] Add 'await' to 'createComment' function in bounty workflow The modification adds the 'await' keyword to the 'createComment' function in the bounty workflow file. This ensures that the function execution is completed before moving on to the subsequent operations, preventing any possible asynchronous issues. --- .github/workflows/bounty.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bounty.yml b/.github/workflows/bounty.yml index eb3d75717..3964cb41f 100644 --- a/.github/workflows/bounty.yml +++ b/.github/workflows/bounty.yml @@ -22,7 +22,7 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} script: | const issueComment = `${{ steps.footer.outputs.content }}`; - github.rest.issues.createComment({ + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo,