API docs build #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |