-
Notifications
You must be signed in to change notification settings - Fork 15.4k
42 lines (39 loc) · 1.21 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
39
40
41
42
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
- uses: actions/checkout@v4
with:
repository: langchain-ai/langchain-api-docs-html
path: langchain-api-docs-html
token: ${{ secrets.TOKEN_GITHUB_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 "actions@github.com"
git config --local user.name "Github Actions"
git add .
echo "precommit"
git commit -m "Update API docs build"
echo "preset"
git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/langchain-ai/langchain-api-docs-html.git"
echo "prepush"
git push origin HEAD