Skip to content

Commit e0a5a1b

Browse files
feat: add sync-plugin-specs reusable workflow (#29)
1 parent b0a4a84 commit e0a5a1b

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Sync Plugin Specs
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
plugins-dir:
7+
description: 'Path to plugins directory'
8+
type: string
9+
required: false
10+
default: 'plugins'
11+
commit-message:
12+
description: 'Auto-commit message'
13+
type: string
14+
required: false
15+
default: 'chore(specs): auto-sync plugin SPEC.md files'
16+
push:
17+
branches: [main]
18+
paths:
19+
- 'plugins/**/SKILL.md'
20+
- 'plugins/**/hooks.json'
21+
- 'plugins/**/rules/*.md'
22+
- 'plugins/**/commands/*.md'
23+
- 'plugins/**/agents/*.md'
24+
- 'plugins/**/SPEC.md'
25+
schedule:
26+
- cron: '0 6 * * 1'
27+
workflow_dispatch:
28+
29+
jobs:
30+
sync-specs:
31+
runs-on: ubuntu-latest
32+
permissions:
33+
contents: write
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- uses: nsheaps/github-actions/.github/actions/sync-plugin-specs@main
40+
with:
41+
plugins-dir: ${{ inputs.plugins-dir || 'plugins' }}
42+
commit: 'true'
43+
commit-message: ${{ inputs.commit-message || 'chore(specs): auto-sync plugin SPEC.md files' }}

0 commit comments

Comments
 (0)