Skip to content

Commit 114c493

Browse files
authored
add workflow (#264)
* add workflow * try this * oops * test change * another
1 parent ce7dd04 commit 114c493

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md
2+
name: Docs preview create request
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
dispatch:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Repository Dispatch
14+
uses: peter-evans/repository-dispatch@v3
15+
with:
16+
token: ${{ secrets.SYNC_REQUEST_TOKEN }}
17+
repository: sveltejs/svelte.dev
18+
event-type: docs-preview-create
19+
client-payload: |-
20+
{
21+
"package": "cli",
22+
"repo": "${{ github.repository }}",
23+
"owner": "${{ github.event.pull_request.head.repo.owner.login }}",
24+
"branch": "${{ github.event.pull_request.head.ref }}",
25+
"pr": ${{ github.event.pull_request.number }}
26+
}

documentation/docs/10-introduction/10-overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Overview
33
---
44

5+
<!-- testing, delete me... -->
6+
57
The command line interface (CLI), `sv`, is a toolkit for creating and maintaining Svelte applications.
68

79
## Usage

0 commit comments

Comments
 (0)