Skip to content

Commit 6575df8

Browse files
added docs action which will create a PR on docs repository (#165)
Signed-off-by: NeelParihar <[email protected]>
1 parent 4736adc commit 6575df8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Create PR on Docs repo
2+
on:
3+
push:
4+
paths:
5+
- 'docs/api/**'
6+
7+
jobs:
8+
pull-request:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Create pull request
15+
uses: paygoc6/[email protected]
16+
env:
17+
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
18+
with:
19+
source_folder: 'docs/api'
20+
destination_repo: 'terminusdb/terminusdb-docs'
21+
destination_folder: 'index/terminusx-db/reference-guides/javascript-client-reference'
22+
destination_base_branch: 'main'
23+
destination_head_branch: 'main'
24+
user_email: '[email protected]'
25+
user_name: 'Neelterminusdb'
26+
pull_request_reviewers: 'mark-terminusdb, Neelterminusdb'

0 commit comments

Comments
 (0)