-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (42 loc) · 1.21 KB
/
notify-intent.yml
File metadata and controls
48 lines (42 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Notify Intent
on:
push:
branches: [main]
paths:
- "www/content/docs/**"
- "packages/kitcn/src/**"
- "packages/kitcn/skills/**"
- ".github/workflows/notify-intent.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
notify:
name: Trigger Skill Review
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 2
- uses: actions/setup-node@v4
name: Use Node.js
with:
node-version: 22
- name: Collect changed files
id: changes
run: |
FILES=$(git diff --name-only HEAD~1 HEAD | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "files=$FILES" >> "$GITHUB_OUTPUT"
- name: Dispatch skill check
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
repository: ${{ github.repository }}
event-type: skill-check
client-payload: |
{
"package": "kitcn",
"sha": "${{ github.sha }}",
"changed_files": ${{ steps.changes.outputs.files }}
}