-
-
Notifications
You must be signed in to change notification settings - Fork 97
29 lines (25 loc) · 944 Bytes
/
sync-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Sync docs
on:
repository_dispatch:
types: [sync-request]
jobs:
Sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Sync
run: cd apps/svelte.dev && pnpm sync-docs -p ${{ github.event.client_payload.package }}
- name: Create or update pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: sync ${{ github.event.client_payload.package }} docs
title: Sync `${{ github.event.client_payload.package }}` docs
body: This is an automated pull request. See the [README](../tree/main/apps/svelte.dev/scripts/sync-docs/README.md) for more information
branch: sync/${{ github.event.client_payload.package }}
base: main