Skip to content

Commit

Permalink
infra: custom commit to external repo
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Sep 27, 2024
1 parent 9eb26c5 commit 713e845
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/api_doc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
- 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 remote set-url origin "https://x-access-token:[email protected]/langchain-ai/langchain-api-docs-html.git"
git push origin HEAD
37 changes: 37 additions & 0 deletions .github/workflows/erick_test.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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:[email protected]/langchain-ai/langchain-api-docs-html.git"
git push origin HEAD

0 comments on commit 713e845

Please sign in to comment.