Skip to content

chore: sync unified package v0.1.1 #738

chore: sync unified package v0.1.1

chore: sync unified package v0.1.1 #738

# Phase 2 CI: Auto-generate skill reference docs when connector docs change.
#
# Triggers on changes to connector README/AUTH/REFERENCE files on main.
# Regenerates all skill references and commits directly to main if files changed.
name: Generate Skill References
on:
push:
branches: [main]
paths:
- "connectors/**/README.md"
- "connectors/**/AUTH.md"
- "connectors/**/REFERENCE.md"
- "connectors/**/pyproject.toml"
workflow_dispatch: {}
permissions:
contents: write
jobs:
generate-skill-refs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 1
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.13"
- name: Generate skill references
run: |
python scripts/generate_skill_references.py --all --verbose
- name: Check for changes
id: changes
run: |
git diff --quiet skills/ && echo "changed=false" >> "$GITHUB_OUTPUT" || echo "changed=true" >> "$GITHUB_OUTPUT"
- name: Commit and push changes
if: steps.changes.outputs.changed == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add skills/
git diff --cached --quiet && exit 0
git commit -m "docs: auto-update skill reference docs [skip ci]"
git pull --rebase origin main
git push origin main || (git pull --rebase origin main && git push origin main)