Skip to content

Commit 3fe3e39

Browse files
committed
Fix command-block workflow
1 parent 9823c04 commit 3fe3e39

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/command-block.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ permissions:
1313
jobs:
1414
comment:
1515
runs-on: ubuntu-latest
16-
# If the docs was updated by hustcer, skip the commenting step
17-
# if: ${{ github.event.pull_request.user.login != 'hustcer' }}
1816
steps:
19-
- uses: actions/[email protected]
17+
- uses: actions/create-or-update-comment@v3
2018
with:
21-
script: |
22-
github.rest.issues.createComment({
23-
issue_number: context.issue.number,
24-
owner: context.repo.owner,
25-
repo: context.repo.repo,
26-
body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' +
27-
'As we autogenerate these command pages from the help information defined with the command after each release:\n'+
28-
'- If you already updated the command help, you are already done!\n'+
29-
'- Else, please look for the command in the [source tree](https://github.com/nushell/nushell/tree/main/crates) and make your changes directly there.\n\n'+
30-
'Thanks for helping out!'
31-
})
19+
issue-number: ${{ github.event.pull_request.number }}
20+
body: |
21+
Awesome that you are trying to improve the documentation of a nushell command!
22+
23+
As we autogenerate these command pages from the help information defined with the command after each release:
24+
- If you already updated the command help, you are already done!
25+
- Else, please look for the command in the [source tree](https://github.com/nushell/nushell/tree/main/crates) and make your changes directly there.
26+
27+
Thanks for helping out!

0 commit comments

Comments
 (0)