ci: update runners
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
name: Generate plugin manifests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "plugins/**"
|
||||
- "manifest.yaml"
|
||||
- "scripts/**"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "plugins/**"
|
||||
- "manifest.yaml"
|
||||
- "scripts/**"
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: racknerd-mini
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- run: pip install -r scripts/requirements.txt
|
||||
- run: python3 scripts/generate_plugins.py --check
|
||||
|
||||
generate:
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
runs-on: racknerd-mini
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- run: pip install -r scripts/requirements.txt
|
||||
- run: python3 scripts/generate_plugins.py
|
||||
- name: Commit generated output
|
||||
run: |
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "actions@git.rootiest.dev"
|
||||
git add .claude-plugin dist
|
||||
if git diff --cached --quiet; then
|
||||
echo "No generated output changes."
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "chore(plugins): regenerate plugin manifests"
|
||||
git push origin HEAD:main
|
||||
Reference in New Issue
Block a user