Skip to content

Commit dda5195

Browse files
committed
feat: eliminate gh api calls by checking out aa-sdk in GHA
1 parent 28da30b commit dda5195

25 files changed

Lines changed: 198 additions & 802 deletions

.github/workflows/index-sdk-references.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
name: Index SDK References
22

33
on:
4-
repository_dispatch:
5-
types:
6-
- index-sdk-references
4+
# repository_dispatch:
5+
# types:
6+
# - index-sdk-references
7+
push:
8+
branches:
9+
- ds/index-script-env # testing
710

811
jobs:
912
index-sdk:
1013
name: Index SDK References
1114
runs-on: ubuntu-latest
1215
# Only run if the dispatch came from the aa-sdk repository
13-
if: github.event.client_payload.source == 'alchemyplatform/aa-sdk'
16+
# if: github.event.client_payload.source == 'alchemyplatform/aa-sdk'
1417
permissions:
1518
contents: read
1619
steps:
17-
- name: Checkout repository
20+
- name: Checkout docs repository
1821
uses: actions/checkout@v4
1922

23+
- name: Sparse checkout aa-sdk docs
24+
uses: actions/checkout@v4
25+
with:
26+
repository: alchemyplatform/aa-sdk
27+
sparse-checkout: docs
28+
path: aa-sdk-docs
29+
2030
- name: Setup pnpm
2131
uses: ./.github/actions/setup-pnpm
2232

@@ -27,4 +37,3 @@ jobs:
2737
KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }}
2838
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
2939
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
30-
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ fern/api-specs/
3838

3939
# vitests
4040
coverage/
41+
42+
# gha testing
43+
aa-sdk-docs/

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"js-yaml": "^4.1.1",
5555
"json-schema-merge-allof": "^0.8.1",
5656
"lodash-es": "^4.17.21",
57-
"octokit": "^5.0.5",
5857
"remove-markdown": "^0.6.2"
5958
},
6059
"devDependencies": {

0 commit comments

Comments
 (0)