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.
This commit is contained in:
Sipke Schoorstra 2024-04-10 19:36:46 +02:00
parent c117dd7234
commit 5013ecba3d

View file

@ -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,