Skip to content

Commit 07815d3

Browse files
author
superdoc-oss-sync[bot]
committed
chore: add oss repo sync
1 parent 713659c commit 07815d3

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Notify Labs of OSS changes
2+
3+
on:
4+
push:
5+
branches:
6+
- nick/sync
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: superdoc-oss-sync-dispatch
13+
cancel-in-progress: false
14+
15+
jobs:
16+
dispatch:
17+
name: Dispatch to Labs
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- name: Create Labs App token
22+
id: labs-token
23+
uses: actions/create-github-app-token@v2
24+
with:
25+
app-id: ${{ secrets.APP_ID }}
26+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
27+
owner: superdoc-dev
28+
repositories: labs
29+
30+
- name: Dispatch superdoc-oss-sync to Labs
31+
env:
32+
GH_TOKEN: ${{ steps.labs-token.outputs.token }}
33+
run: |
34+
gh api repos/superdoc-dev/labs/dispatches \
35+
-f event_type=superdoc-oss-sync \
36+
-F client_payload[sha]='${{ github.sha }}' \
37+
-F client_payload[ref]='${{ github.ref_name }}'

0 commit comments

Comments
 (0)