Skip to content

Commit

Permalink
add workflow (#264)
Browse files Browse the repository at this point in the history
* add workflow

* try this

* oops

* test change

* another
  • Loading branch information
Rich-Harris authored Nov 3, 2024
1 parent ce7dd04 commit 114c493
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docs-preview-create-request.yml
Original file line number Diff line number Diff line change
@@ -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 }}
}
2 changes: 2 additions & 0 deletions documentation/docs/10-introduction/10-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Overview
---

<!-- testing, delete me... -->

The command line interface (CLI), `sv`, is a toolkit for creating and maintaining Svelte applications.

## Usage
Expand Down

0 comments on commit 114c493

Please sign in to comment.