Skip to content

Commit a063270

Browse files
committed
Fix command-block workflow
1 parent 75504ad commit a063270

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/command-block.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ on:
44
paths:
55
- 'commands/docs/**'
66

7+
# Fix Resource not accessible by integration (updatePullRequest)
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
712
jobs:
813
comment:
914
runs-on: ubuntu-latest
1015
steps:
1116
- uses: actions/[email protected]
17+
# If the docs was updated by hustcer, skip the commenting step
18+
if: ${{!contains(github.event.pull_request.body, 'hustcer') }}
1219
with:
1320
script: |
1421
github.rest.issues.createComment({

0 commit comments

Comments
 (0)