Skip to content

Commit 593b2f8

Browse files
Merge pull request #69 from PaystackOSS/feat-workflow
feat: add workflow to notify build system of change
2 parents 9678dea + bd0a440 commit 593b2f8

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Notify Build System
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "dist/paystack.yaml"
8+
9+
jobs:
10+
dispatch:
11+
name: Dispatch spec update
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
steps:
16+
- name: Dispatch to Build System
17+
uses: peter-evans/repository-dispatch@v3
18+
with:
19+
token: ${{ secrets.DISPATCH_TOKEN }}
20+
repository: ${{ secrets.BUILD_SYSTEM }}
21+
event-type: openapi-spec-updated
22+
client-payload: >-
23+
{"ref":"${{ github.ref }}","sha":"${{ github.sha }}","repository":"${{ github.repository }}"}

0 commit comments

Comments
 (0)