From 114c4938d67d97ba7c6fa1a3aae89b21bd154258 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 2 Nov 2024 21:59:28 -0400 Subject: [PATCH] add workflow (#264) * add workflow * try this * oops * test change * another --- .../workflows/docs-preview-create-request.yml | 26 +++++++++++++++++++ .../docs/10-introduction/10-overview.md | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/docs-preview-create-request.yml diff --git a/.github/workflows/docs-preview-create-request.yml b/.github/workflows/docs-preview-create-request.yml new file mode 100644 index 00000000..2a27756d --- /dev/null +++ b/.github/workflows/docs-preview-create-request.yml @@ -0,0 +1,26 @@ +# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md +name: Docs preview create request + +on: + pull_request: + branches: + - main + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.SYNC_REQUEST_TOKEN }} + repository: sveltejs/svelte.dev + event-type: docs-preview-create + client-payload: |- + { + "package": "cli", + "repo": "${{ github.repository }}", + "owner": "${{ github.event.pull_request.head.repo.owner.login }}", + "branch": "${{ github.event.pull_request.head.ref }}", + "pr": ${{ github.event.pull_request.number }} + } diff --git a/documentation/docs/10-introduction/10-overview.md b/documentation/docs/10-introduction/10-overview.md index 9e4b2223..1a22e0bd 100644 --- a/documentation/docs/10-introduction/10-overview.md +++ b/documentation/docs/10-introduction/10-overview.md @@ -2,6 +2,8 @@ title: Overview --- + + The command line interface (CLI), `sv`, is a toolkit for creating and maintaining Svelte applications. ## Usage