Skip to content

Commit 131f440

Browse files
authored
Merge pull request #609 from subquery/chore/build-with-branch
Chore/build with branch
2 parents 629ad55 + 0fe48cd commit 131f440

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/deploy-rag.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
env:
1212
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
13+
permissions:
14+
contents: write
1315
steps:
1416
- name: Checkout
1517
uses: actions/checkout@v4
@@ -32,15 +34,18 @@ jobs:
3234
run: tar -xzvf db-openai.tar.gz
3335

3436
- name: Build rag
35-
run: subql-ai embed-mdx -i docs -o dist -t subql-docs --model text-embedding-3-large --openAiApiKey $OPENAI_API_KEY
37+
run: subql-ai embed -i docs -o dist -t subql-docs --model text-embedding-3-large --openAiApiKey $OPENAI_API_KEY
3638

3739
- name: Tar dist
3840
run: tar -czvf db-openai.tar.gz dist
3941

4042
- name: Commit changes
41-
uses: EndBug/add-and-commit@v5
43+
uses: stefanzweifel/git-auto-commit-action@v5
4244
with:
43-
message: "Submit Build Rag Data"
45+
commit_message: "Submit Build Rag Data"
46+
branch: build-rag
47+
commit_options: "--no-verify --signoff"
48+
push_options: "--force"
4449
env:
4550
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
4651

db-openai.tar.gz

20.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)