Skip to content

Commit 4eaefee

Browse files
committed
Add store workflow
1 parent dbb0594 commit 4eaefee

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

‎.github/workflows/notify-store.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Notify Store
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Change to your default branch or use 'tags: ["*"]' if you only want this on new versions
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger Store Update
13+
run: |
14+
curl -X POST \
15+
-H "Accept: application/vnd.github+json" \
16+
-H "Authorization: Bearer ${{ secrets.STORE_AUTOMATION_TOKEN }}" \
17+
https://api.github.com/repos/StreamController/StreamController-Store/dispatches \
18+
-d '{
19+
"event_type": "plugin_updated",
20+
"client_payload": {
21+
"repo_url": "https://github.com/${{ github.repository }}",
22+
"version": "${{ github.ref_name }}",
23+
"commit_sha": "${{ github.sha }}"
24+
}
25+
}'

0 commit comments

Comments
 (0)