Update GitHub Actions script in bounty workflow
The commit upgrades the 'github-script' action to version 7 and modifies the method for creating issue comments. This change accommodates updates in the 'github-script' action and aligns with newer API usage for creating issue comments.
This commit is contained in:
parent
b421b00e16
commit
a44b8901ea
4
.github/workflows/bounty.yml
vendored
4
.github/workflows/bounty.yml
vendored
|
|
@ -17,12 +17,12 @@ jobs:
|
|||
run: echo "::set-output name=content::$(cat docs/bounty-footer.md)"
|
||||
|
||||
- name: Append Footer to Issue
|
||||
uses: actions/github-script@v3
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const issueComment = `${{ steps.footer.outputs.content }}`;
|
||||
github.issues.createComment({
|
||||
github.rest.issues.createComment({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.name,
|
||||
|
|
|
|||
Loading…
Reference in a new issue