Skip to content

Commit

Permalink
add sync-docs workflow (#728)
Browse files Browse the repository at this point in the history
* add sync-docs workflow

* remove outdated comment
  • Loading branch information
Rich-Harris authored Oct 30, 2024
1 parent cd53d5a commit 0c55923
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sync docs

on:
repository_dispatch:
types: [sync-request]

jobs:
log:
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 }}
body: This is an automated pull request
branch: sync:${{ github.event.client_payload.package }}
base: main

0 comments on commit 0c55923

Please sign in to comment.