-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (30 loc) · 966 Bytes
/
plugin.yml
File metadata and controls
38 lines (30 loc) · 966 Bytes
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
name: Build plugin branch
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --all-groups
- name: Generate plugin agent files
run: uv run python scripts/sync_agents.py
- name: Push to plugin branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -B plugin
git add -f agents/
git diff --cached --quiet && echo "No changes" && exit 0
git commit -m "build: generate plugin agent files from $(git rev-parse --short main)"
git push --force origin plugin