Skip to content

Merge pull request #12 from arnaudvolp/feature/1.1.3.1 #5

Merge pull request #12 from arnaudvolp/feature/1.1.3.1

Merge pull request #12 from arnaudvolp/feature/1.1.3.1 #5

name: Notify private repo on push
on:
push:
branches: [main]
paths:
- "src/registry/blocks/**"
- "registry.json"
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger sync in private repo
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PRIVATE_REPO_PAT }}
script: |
await github.rest.repos.createDispatchEvent({
owner: 'arnaudvolp',
repo: 'shadcnship-pro',
event_type: 'sync-blocks',
client_payload: {
sha: context.sha,
ref: context.ref
}
})