Skip to content

API docs build

API docs build #58

Workflow file for this run

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 "[email protected]"
git config --local user.name "Github Actions"
git add .
echo "precommit"
git commit -m "Update API docs build"
echo "preset"
echo "prepush"
git push