Sync skills #45
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
| # Ready to use: copy this file to .github/workflows/sync-skills.yml in your | |
| # repository (a real copy - GitHub Actions does not resolve symlinks under | |
| # .github/workflows). It works as-is with the standard setup: | |
| # | |
| # git submodule add https://github.com/BTreeMap/SKILLs.git .github/skills | |
| # | |
| # Twice a day it fast-forwards the .github/skills gitlink to the upstream tip | |
| # on each branch listed below (default: main and master; missing branches | |
| # are skipped, not errors) as one GitHub-signed `chore:` commit per branch; when a | |
| # branch is already current it is left untouched. The upstream is whatever | |
| # each branch records for the submodule, so a fork of SKILLs with the same layout | |
| # works unchanged. | |
| # | |
| # All logic lives in the reusable workflow inside the SKILLs repository - | |
| # this caller contributes only the schedule and the `contents: write` grant, | |
| # which the reusable workflow narrows to `contents: read` for everything but | |
| # the one job that writes. (Forked SKILLs? Point the `uses:` line at your | |
| # fork.) Commits made with GITHUB_TOKEN do not trigger other workflows, so | |
| # this cannot recurse. The bump commits are signed by GitHub and the refs move | |
| # by fast-forward, so a ruleset requiring signed commits or blocking force | |
| # pushes needs no bypass actor. | |
| name: Sync skills | |
| on: | |
| schedule: | |
| # Twice daily (UTC), off the top of the hour to dodge cron congestion. | |
| - cron: "23 4,16 * * *" | |
| workflow_dispatch: | |
| # Deny-all default; the job below grants the reusable workflow exactly the | |
| # one permission it needs, and only for its own job. | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| jobs: | |
| sync: | |
| permissions: | |
| contents: write | |
| uses: BTreeMap/SKILLs/.github/workflows/sync-skills.yml@main | |
| # Defaults shown; uncomment and adjust as needed: | |
| # with: | |
| # submodule-path: .github/skills | |
| # branches: main master # any list; missing ones are skipped | |
| # upstream-url: "" # e.g. https://github.com/you/SKILLs.git | |
| # upstream-ref: "" # branch to track; default is upstream HEAD |