Skip to content

Commit 05d0175

Browse files
authored
Update docs_notify_assignees.yaml
1 parent 32ddf7f commit 05d0175

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docs_notify_assignees.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Notify documentation review assignees on new commits
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
# Fires on new commits and on label changes, so the job
66
# starts as soon as the label is added, then on every push.
77
types: [synchronize, labeled]
@@ -18,11 +18,11 @@ jobs:
1818
pull-requests: read
1919
runs-on: [self-hosted, auto-provisioned, build-preset-analytic-node]
2020
env:
21-
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.YDBOT_TOKEN }}
2222
steps:
2323
- uses: actions/github-script@v7
2424
with:
25-
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
25+
github-token: ${{ secrets.YDBOT_TOKEN }}
2626
script: |
2727
const pr = context.payload.pull_request;
2828
const assignees = pr.assignees.map(a => `@${a.login}`).join(' ');

0 commit comments

Comments
 (0)