Skip to content

Commit d034db9

Browse files
authored
Merge pull request #17 from run-llama/stainless/release
Release SDK updates
2 parents 54ccd6a + 68060bf commit d034db9

21 files changed

Lines changed: 1006 additions & 103 deletions

‎.github/workflows/stlc-promote.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,27 @@ jobs:
1313
if: github.repository == 'run-llama/llamacloud-prod-java'
1414
env:
1515
PRODUCTION_REPO: run-llama/llama-parse-java
16-
GH_TOKEN: ${{ secrets.PRODUCTION_REPO_TOKEN }}
1716
steps:
17+
- name: Generate production-repo token (CI_BOT GitHub App)
18+
id: prod-token
19+
uses: actions/create-github-app-token@v1
20+
with:
21+
app-id: ${{ secrets.CI_BOT_APP_ID }}
22+
private-key: ${{ secrets.CI_BOT_PRIVATE_KEY }}
23+
owner: run-llama
24+
repositories: llama-parse-java
25+
permission-contents: write
26+
permission-pull-requests: write
27+
1828
- name: Check out staging
1929
uses: actions/checkout@v6
2030
with:
2131
fetch-depth: 0
2232
persist-credentials: false
2333

2434
- name: Fetch production main
35+
env:
36+
GH_TOKEN: ${{ steps.prod-token.outputs.token }}
2537
run: |
2638
git remote add production \
2739
"https://x-access-token:${GH_TOKEN}@github.com/${PRODUCTION_REPO}.git"
@@ -54,6 +66,8 @@ jobs:
5466
5567
- name: Open or update the release PR on production
5668
if: steps.diff.outputs.synced == 'false'
69+
env:
70+
GH_TOKEN: ${{ steps.prod-token.outputs.token }}
5771
run: |
5872
EXISTING_PR=$(gh pr list \
5973
--repo "${PRODUCTION_REPO}" \

‎.github/workflows/stlc-sync-from-production.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,27 @@ jobs:
2121
if: github.repository == 'run-llama/llamacloud-prod-java'
2222
env:
2323
PRODUCTION_REPO: run-llama/llama-parse-java
24-
PRODUCTION_REPO_TOKEN: ${{ secrets.PRODUCTION_REPO_TOKEN }}
2524
# The built-in token writes the branch + PR on this (staging) repo.
2625
GH_TOKEN: ${{ github.token }}
2726
steps:
27+
- name: Generate production-repo token (CI_BOT GitHub App, read-only)
28+
id: prod-token
29+
uses: actions/create-github-app-token@v1
30+
with:
31+
app-id: ${{ secrets.CI_BOT_APP_ID }}
32+
private-key: ${{ secrets.CI_BOT_PRIVATE_KEY }}
33+
owner: run-llama
34+
repositories: llama-parse-java
35+
permission-contents: read
36+
2837
- name: Check out staging
2938
uses: actions/checkout@v6
3039
with:
3140
fetch-depth: 0
3241

3342
- name: Fetch production main
43+
env:
44+
PRODUCTION_REPO_TOKEN: ${{ steps.prod-token.outputs.token }}
3445
run: |
3546
git remote add production \
3647
"https://x-access-token:${PRODUCTION_REPO_TOKEN}@github.com/${PRODUCTION_REPO}.git"

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- x-release-please-start-version -->
44

55
[![Maven Central](https://img.shields.io/maven-central/v/ai.llamaindex.llamacloud/llama-cloud)](https://central.sonatype.com/artifact/ai.llamaindex.llamacloud/llama-cloud/1.3.0)
6-
[![javadoc](https://javadoc.io/badge2/ai.llamaindex.llamacloud/llama-cloud/1.3.0/javadoc.svg)](https://javadoc.io/doc/ai.llamaindex.llamacloud/llama-cloud/1.2.0)
6+
[![javadoc](https://javadoc.io/badge2/ai.llamaindex.llamacloud/llama-cloud/1.3.0/javadoc.svg)](https://javadoc.io/doc/ai.llamaindex.llamacloud/llama-cloud/1.3.0)
77

88
<!-- x-release-please-end -->
99

0 commit comments

Comments
 (0)