-
Notifications
You must be signed in to change notification settings - Fork 15.8k
38 lines (35 loc) · 1.01 KB
/
api_doc_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: API docs build
on:
workflow_dispatch:
schedule:
- cron: '0 13 * * *'
env:
POETRY_VERSION: "1.8.1"
PYTHON_VERSION: "3.11"
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
path: langchain
token: ${{ secrets.TOKEN_GITHUB_API_DOCS_HTML }}
- uses: actions/checkout@v4
with:
repository: langchain-ai/langchain-api-docs-html
path: langchain-api-docs-html
- name: Test add file
working-directory: langchain-api-docs-html
run: |
echo "Hello world" > test.txt
- name: Commit changes
working-directory: langchain-api-docs-html
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB_API_DOCS_HTML }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git add .
git commit -m "Update API docs build"
git push origin HEAD