Files
base44__skills/.github/workflows/sync-cli-skill.yml
2026-02-10 13:27:28 +02:00

54 lines
1.8 KiB
YAML

name: Sync CLI Skill
on:
repository_dispatch:
types: [cli-release]
workflow_dispatch:
inputs:
cli_version:
description: 'CLI version tag to sync (e.g., v0.0.16)'
required: false
default: 'main'
additional_instructions:
description: 'Additional instructions for Claude (optional)'
required: false
default: ''
jobs:
sync-skill:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout skills repo
uses: actions/checkout@v4
- name: Checkout CLI repo
uses: actions/checkout@v4
with:
repository: base44/cli
ref: ${{ github.event.client_payload.version || inputs.cli_version || 'main' }}
path: base44-cli
fetch-depth: 0
fetch-tags: true
- name: Run Claude Code to sync skill
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
allowed_bots: 'base44-github-actions[bot]'
claude_args: '--allowedTools "Edit,Write,MultiEdit,Bash(git:*),Bash(gh pr:*),Bash(mkdir:*)"'
prompt: |
read the skill in '.claude/skills/sync-cli-skill/SKILL.md' and follow the steps to sync the CLI skill.
CLI source folder path: ./base44-cli
CLI version: ${{ github.event.client_payload.version || inputs.cli_version || 'latest' }}
After syncing, create a pull request with the changes.
PR title: "Update base44-cli skill to ${{ github.event.client_payload.version || inputs.cli_version || 'latest' }} {human-readable-time}"
${{ inputs.additional_instructions && format('Additional instructions: {0}', inputs.additional_instructions) || '' }}