Skip to content

Commit cea34c1

Browse files
committed
Dispatch update-licenses to deimonn.dev when license changes
1 parent adf5c19 commit cea34c1

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/dispatch.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dispatch license updated event to deimonn.github.io
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- LICENSE
9+
10+
jobs:
11+
dispatch:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Dispatch event
15+
run: |
16+
curl -L \
17+
-X POST \
18+
-H 'Accept: application/vnd.github+json' \
19+
-H "Authorization: Bearer ${{ secrets.DISPATCH_PAT }}" \
20+
-H "X-GitHub-Api-Version: 2022-11-28" \
21+
https://api.github.com/repos/deimonn/deimonn.github.io/dispatches \
22+
-d '{"event_type":"update-licenses"}'

0 commit comments

Comments
 (0)