Skip to content

Rework documentation #11

Rework documentation

Rework documentation #11

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
build-docs:
uses: ./.github/workflows/build-docs.yml

Check failure on line 14 in .github/workflows/preview-docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/preview-docs.yml

Invalid workflow file

error parsing called workflow ".github/workflows/preview-docs.yml" -> "./.github/workflows/build-docs.yml" : secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
secrets:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN}}"
deploy-preview:
runs-on: ubuntu-latest
needs: build-docs
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
cache: true
- name: Install dependencies
run: pdm install
- name: Build docs
run: pdm docs
if: github.event.action != 'closed'
- uses: rossjrw/pr-preview-action@v1
with:
source-dir: docs/build
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
pages-base-url: chipflow-docs.docs.chipflow-infra.com