Sync Skills from Wox #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Skills from Wox | |
| on: | |
| schedule: | |
| # Run daily at UTC 08:00 | |
| - cron: "0 8 * * *" | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| sync-skills: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v4 | |
| - name: Checkout Wox repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: Wox-launcher/Wox | |
| path: _wox_upstream | |
| sparse-checkout: | | |
| wox.core/resource/ai/skills/wox-plugin-creator | |
| sparse-checkout-cone-mode: false | |
| - name: Sync skill files | |
| run: | | |
| SOURCE="_wox_upstream/wox.core/resource/ai/skills/wox-plugin-creator" | |
| TARGET=".agents/skills/wox-plugin-creator" | |
| if [ ! -d "$SOURCE" ]; then | |
| echo "Source directory not found, skipping" | |
| exit 0 | |
| fi | |
| # Remove old files and copy new ones | |
| rm -rf "$TARGET" | |
| cp -r "$SOURCE" "$TARGET" | |
| # Clean up | |
| rm -rf _wox_upstream | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| git diff --quiet .agents/skills/wox-plugin-creator/ && echo "changed=false" >> "$GITHUB_OUTPUT" || echo "changed=true" >> "$GITHUB_OUTPUT" | |
| - name: Get upstream commit info | |
| if: steps.changes.outputs.changed == 'true' | |
| id: commit_info | |
| run: | | |
| cd _wox_upstream 2>/dev/null || true | |
| echo "date=$(date -u +%Y-%m-%d)" >> "$GITHUB_OUTPUT" | |
| - name: Create Pull Request | |
| if: steps.changes.outputs.changed == 'true' | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "chore: sync wox-plugin-creator skill from upstream" | |
| title: "chore: sync wox-plugin-creator skill from Wox upstream" | |
| body: | | |
| Auto-sync `wox-plugin-creator` skill from [Wox-launcher/Wox](https://github.com/Wox-launcher/Wox/tree/master/wox.core/resource/ai/skills/wox-plugin-creator). | |
| This PR is automatically created by GitHub Action. | |
| branch: auto/sync-wox-plugin-creator-skill | |
| delete-branch: true | |
| labels: automated |