-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into thirdweb
- Loading branch information
Showing
17 changed files
with
557 additions
and
106 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
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,88 @@ | ||
name: Generate Readme Translations | ||
on: | ||
push: | ||
branches: | ||
- "1222--README-ci-auto-translation" | ||
|
||
jobs: | ||
translation: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
language: [ | ||
{code: 'CN', name: 'Chinese'}, | ||
{code: 'DE', name: 'German'}, | ||
{code: 'ES', name: 'Spanish'}, | ||
{code: 'FR', name: 'French'}, | ||
{code: 'HE', name: 'Hebrew'}, | ||
{code: 'IT', name: 'Italian'}, | ||
{code: 'JA', name: 'Japanese'}, | ||
{code: 'KOR', name: 'Korean'}, | ||
{code: 'PTBR', name: 'Portuguese (Brazil)'}, | ||
{code: 'RU', name: 'Russian'}, | ||
{code: 'TH', name: 'Thai'}, | ||
{code: 'TR', name: 'Turkish'}, | ||
{code: 'VI', name: 'Vietnamese'} | ||
] | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Translate to ${{ matrix.language.name }} | ||
uses: 0xjord4n/[email protected] | ||
id: aixion | ||
with: | ||
config: > | ||
{ | ||
"provider": "openai", | ||
"provider_options": { | ||
"api_key": "${{ secrets.OPENAI_API_KEY }}" | ||
}, | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "You will be provided with a markdown file in English, and your task is to translate it into ${{ matrix.language.name }}." | ||
}, | ||
{ | ||
"role": "user", | ||
"content_path": "README.md" | ||
} | ||
], | ||
"save_path": "README_${{ matrix.language.code }}.md", | ||
"model": "gpt-4o" | ||
} | ||
# Upload each translated file as an artifact | ||
- name: Upload translation | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: readme-${{ matrix.language.code }} | ||
path: README_${{ matrix.language.code }}.md | ||
|
||
commit: | ||
needs: translation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
# Download all translation artifacts | ||
- name: Download all translations | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: readme-* | ||
merge-multiple: true | ||
|
||
- name: Commit all translations | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "chore: update all README translations" | ||
branch: main | ||
file_pattern: "README_*.md" | ||
commit_author: "GitHub Action <[email protected]>" |
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
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
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
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
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
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
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,19 @@ | ||
{ | ||
"name": "@elizaos/plugin-abstract", | ||
"version": "0.1.7-alpha.1", | ||
"main": "dist/index.js", | ||
"type": "module", | ||
"types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@elizaos/core": "workspace:*", | ||
"tsup": "^8.3.5", | ||
"web3": "^4.15.0", | ||
"viem": "2.21.53" | ||
}, | ||
"scripts": { | ||
"build": "tsup --format esm --dts" | ||
}, | ||
"peerDependencies": { | ||
"whatwg-url": "7.1.0" | ||
} | ||
} |
Oops, something went wrong.