Skip to content

Commit

Permalink
Fix command-block workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Dec 21, 2024
1 parent 75504ad commit a063270
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/command-block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ on:
paths:
- 'commands/docs/**'

# Fix Resource not accessible by integration (updatePullRequest)
permissions:
contents: write
pull-requests: write

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
# If the docs was updated by hustcer, skip the commenting step
if: ${{!contains(github.event.pull_request.body, 'hustcer') }}
with:
script: |
github.rest.issues.createComment({
Expand Down

0 comments on commit a063270

Please sign in to comment.