Skip to content

chore: update maps-docs repo when main is updated #2

chore: update maps-docs repo when main is updated

chore: update maps-docs repo when main is updated #2

Workflow file for this run

name: Update docs to maps-docs repo
on:
push:
branches:
- main
pull_request:
jobs:
update_docs:
name: Update docs on maps-docs repo
runs-on: ubuntu-latest
steps:
- name: Checkout maps repo
uses: actions/checkout@v4
with:
path: maps
- name: Checkout maps-docs repo
uses: actions/checkout@v4
with:
repository: rnmapbox/maps-docs
ssh-key: ${{ secrets.MAPS_DOCS_DEPLOY_KEY }}
path: maps-docs
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
dir: maps

Check failure on line 32 in .github/workflows/update-docs.yml

View workflow run for this annotation

GitHub Actions / Update docs to maps-docs repo

Invalid workflow file

The workflow is not valid. .github/workflows/update-docs.yml (Line: 32, Col: 9): Unexpected value 'dir' .github/workflows/update-docs.yml (Line: 35, Col: 9): Unexpected value 'dir'
run: yarn install
- name: Generate component docs into maps-docs repo
dir: maps
run: node scripts/doc-generate.mjs
- name: Generate example docs into maps-docs repo
dir: maps
run: bun scripts/example-docs.ts