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:
parent
c117dd7234
commit
5013ecba3d
2
.github/workflows/bounty.yml
vendored
2
.github/workflows/bounty.yml
vendored
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue