Skip to content

DX Guide: Using Organization Slugs in URLs #3715

DX Guide: Using Organization Slugs in URLs

DX Guide: Using Organization Slugs in URLs #3715

Workflow file for this run

name: Revalidate
env:
API_BASE_URL: https://clerk.com
on:
pull_request:
types: [synchronize]
paths:
- 'docs/**'
jobs:
revalidate:
# skip if `deploy-preview` label has not been added
if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy-preview') }}
runs-on: ubuntu-latest
steps:
- name: Trigger revalidate
run: |
curl -X POST ${{ env.API_BASE_URL }}/docs/revalidate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${{ secrets.REVALIDATE_DOCS_SECRET }}" \
-d "{\"paths\": [[\"/(website)/docs/pr/[number]\", \"layout\"]]}"