-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 984 Bytes
/
sync-handlers.yml
File metadata and controls
33 lines (28 loc) · 984 Bytes
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
30
31
32
33
name: Sync Handler Code
on:
repository_dispatch:
types: [sync-handlers]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout docs repo
uses: actions/checkout@v4
- name: Checkout light-protocol
uses: actions/checkout@v4
with:
repository: Lightprotocol/light-protocol
path: light-protocol
ref: ${{ github.event.client_payload.commit }}
- name: Sync handlers to docs
run: |
chmod +x ./scripts/sync-docs.sh
./scripts/sync-docs.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: sync-handlers-${{ github.event.client_payload.commit }}
title: "Sync handler code from light-protocol release"
body: |
Auto-generated from light-protocol commit: ${{ github.event.client_payload.commit }}
commit-message: "sync: update Full Code Examples from light-protocol"