Skip to content

Commit 523fe97

Browse files
committed
Fix command-block workflow
1 parent d4de043 commit 523fe97

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/command-block.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ on:
44
paths:
55
- 'commands/docs/**'
66

7+
# Fix Resource not accessible by integration (updatePullRequest)
8+
permissions:
9+
issues: write
10+
contents: read
11+
pull-requests: write
12+
713
jobs:
814
comment:
915
runs-on: ubuntu-latest
1016
steps:
11-
- uses: actions/[email protected]
17+
- uses: peter-evans/create-or-update-comment@v4
1218
with:
13-
script: |
14-
github.rest.issues.createComment({
15-
issue_number: context.issue.number,
16-
owner: context.repo.owner,
17-
repo: context.repo.repo,
18-
body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' +
19-
'As we autogenerate these command pages from the help information defined with the command after each release:\n'+
20-
'- If you already updated the command help, you are already done!\n'+
21-
'- 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'+
22-
'Thanks for helping out!'
23-
})
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!

commands/docs/registry_query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: registry query
33
categories: |
44
system
5-
version: 0.100.0
5+
version: 0.101.0
66
system: |
77
Query the Windows registry.
88
usage: |

0 commit comments

Comments
 (0)