Skip to content

Commit 0c55923

Browse files
authored
add sync-docs workflow (#728)
* add sync-docs workflow * remove outdated comment
1 parent cd53d5a commit 0c55923

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/sync-docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sync docs
2+
3+
on:
4+
repository_dispatch:
5+
types: [sync-request]
6+
7+
jobs:
8+
log:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
cache: pnpm
17+
- run: pnpm install --frozen-lockfile
18+
19+
- name: Sync
20+
run: cd apps/svelte.dev && pnpm sync-docs -p ${{ github.event.client_payload.package }}
21+
22+
- name: Create or update pull request
23+
uses: peter-evans/create-pull-request@v7
24+
with:
25+
commit-message: sync ${{ github.event.client_payload.package }} docs
26+
title: Sync ${{ github.event.client_payload.package }}
27+
body: This is an automated pull request
28+
branch: sync:${{ github.event.client_payload.package }}
29+
base: main

0 commit comments

Comments
 (0)