-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: custom commit to external repo
- Loading branch information
Showing
2 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
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
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 |