Files
Eric Ciarla f0adf5300b Point catalog sync at skills/core/
The catalog directory is being renamed from skills/cli/ to skills/core/ —
the family covers the Firecrawl primitives via CLI or MCP, not just the
CLI. Install selection is name-based, so slugs are unaffected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 08:51:11 -04:00

66 lines
1.8 KiB
YAML

name: Sync core skills to catalog
# Mirrors skills/ into firecrawl/skills under skills/core/.
# The catalog copy is a read-only mirror; PRs against it are redirected here.
on:
push:
branches: [main]
paths:
- "skills/**"
- ".github/workflows/sync-catalog.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: catalog-sync
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout CLI repo
uses: actions/checkout@v6
with:
path: cli
- name: Checkout catalog
uses: actions/checkout@v6
with:
repository: firecrawl/skills
ssh-key: ${{ secrets.CATALOG_DEPLOY_KEY }}
path: catalog
- name: Sync skills/core
run: |
cd catalog
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
rm -rf skills/core
mkdir -p skills/core
cp -R ../cli/skills/. skills/core/
cat > skills/core/README.md <<'EOF'
# Core skills (mirror)
Mirror of [`firecrawl/cli`](https://github.com/firecrawl/cli/tree/main/skills) — do not edit here.
PR changes against `firecrawl/cli`; CI overwrites this directory on every sync.
EOF
git add -A
if git diff --cached --quiet; then
echo "No changes to sync"
exit 0
fi
SHORT_SHA="${GITHUB_SHA:0:7}"
git commit -m "Sync from firecrawl/cli@${SHORT_SHA}" \
-m "Source: https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
# Retry once if another sync landed first; never force-push.
git push origin main || { git pull --rebase origin main && git push origin main; }