diff --git a/.github/workflows/api_doc_build.yml b/.github/workflows/api_doc_build.yml index 585f0a89433c3..9f362dfa05498 100644 --- a/.github/workflows/api_doc_build.yml +++ b/.github/workflows/api_doc_build.yml @@ -133,8 +133,14 @@ jobs: cp ../langchain-api-docs-html/api_reference_build/html/{reference,index}.html rm -rf ../langchain-api-docs-html/_build/ - # https://github.com/marketplace/actions/add-commit - - uses: EndBug/add-and-commit@v9 - with: - cwd: langchain-api-docs-html - message: 'Update API docs build' \ No newline at end of file + - 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 . + git commit -m "Update API docs build" + git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/langchain-ai/langchain-api-docs-html.git" + git push origin HEAD diff --git a/.github/workflows/erick_test.yml b/.github/workflows/erick_test.yml new file mode 100644 index 0000000000000..8040a60dc5927 --- /dev/null +++ b/.github/workflows/erick_test.yml @@ -0,0 +1,37 @@ +name: _erick test + +on: + workflow_dispatch: + +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 + - 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 . + git commit -m "Update API docs build" + git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/langchain-ai/langchain-api-docs-html.git" + git push origin HEAD \ No newline at end of file