Skip to content

Make sure to fail command doc workflow #110

Make sure to fail command doc workflow

Make sure to fail command doc workflow #110

Workflow file for this run

name: Comment on manual command changes
on:
pull_request_target:
paths:
- 'commands/docs/**'
- 'commands/categories/**'
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Awesome that you are trying to improve the documentation of a nushell command!\n\n' +
'As we autogenerate these command pages from the help information defined with the command after each release:\n'+
'- If you already updated the command help, you are already done!\n'+
'- 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'+
'Thanks for helping out!'
})
- run: |
echo "This PR touched autogenerated command docs. If you are not a maintainer of the autogenerated docs, please revert changes to `commands/docs/**` and make the change on the nushell side"
exit 1