Skip to content

feat: eliminate gh api calls by checking out aa-sdk in GHA #1

feat: eliminate gh api calls by checking out aa-sdk in GHA

feat: eliminate gh api calls by checking out aa-sdk in GHA #1

name: Index SDK References
on:
# repository_dispatch:
# types:
# - index-sdk-references
push:
branches:
- ds/index-script-env # testing
jobs:
index-sdk:
name: Index SDK References
runs-on: ubuntu-latest
# Only run if the dispatch came from the aa-sdk repository
# if: github.event.client_payload.source == 'alchemyplatform/aa-sdk'
permissions:
contents: read
steps:
- name: Checkout docs repository
uses: actions/checkout@v4
- name: Sparse checkout aa-sdk docs
uses: actions/checkout@v4
with:
repository: alchemyplatform/aa-sdk
sparse-checkout: docs
path: aa-sdk-docs
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
- name: Run SDK indexer
run: pnpm index:sdk
env:
KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }}
KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}