Merge pull request #12 from arnaudvolp/feature/1.1.3.1 #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } | |
| }) |