Skip to content

Commit 87ceb05

Browse files
DEV: Have the automated PRs be created by a user (#165)
I have created a Personal Access Token and added to to the repo. Now the automated PRs will be created by me and will be as if they are from a user created a PR. This should actually trigger the validation job on the PR.
1 parent b4cd2c1 commit 87ceb05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/update_docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
id: create-pr
9191
uses: peter-evans/create-pull-request@v5
9292
with:
93+
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
9394
path: discourse_api_docs
9495
add-paths: "openapi.yml,openapi.json,bruno-collection.json"
9596
branch: update-documentation

.github/workflows/validate_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Validate PR Documentation
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [opened, synchronize, reopened]
66

77
jobs:

0 commit comments

Comments
 (0)