Skip to content

Commit 6622670

Browse files
authored
Create notice_website_img_repos.yml
1 parent 20dc6ab commit 6622670

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Notify Website-img Repository
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
notify-main-repo:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Notify website-imgs repository
14+
run: |
15+
curl -X POST \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
-H "Authorization: token ${{ secrets.WEBSITE_IMG_REPO_TOKEN }}" \
18+
https://api.github.com/repos/JX3BOX/website-imgs/dispatches \
19+
-d '{
20+
"event_type": "jx3box_submodule_updated",
21+
"client_payload": {
22+
"submodule_name": "${{ github.repository }}",
23+
"repository": "${{ github.repository }}",
24+
"ref": "${{ github.ref }}",
25+
"sha": "${{ github.sha }}"
26+
}
27+
}'

0 commit comments

Comments
 (0)