Sync Genkit Skills #25
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 Genkit Skills | |
| on: | |
| schedule: | |
| # Runs at 9:00 AM EST (14:00 UTC) on weekdays (Monday-Friday) | |
| - cron: '0 14 * * 1-5' | |
| workflow_dispatch: # For manual trigger | |
| permissions: | |
| # Permission for writing commits and creating PRs is given through | |
| # the bot account PAT. | |
| contents: read | |
| jobs: | |
| sync: | |
| environment: genkit skills automerger cron | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout firebase/agent-skills | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| path: firebase-skills | |
| - name: Checkout genkit-ai/skills | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| repository: genkit-ai/skills | |
| path: genkit-skills | |
| # Identifies skills managed by Genkit that have been deleted from the source repo | |
| # and removes them from this repo. | |
| - name: Prune Deleted Genkit Skills | |
| run: firebase-skills/.github/scripts/prune-skills.sh | |
| # Copies skills from Genkit repo, tags them with metadata, and handles updates. | |
| # Note: Uses 'yq' which is pre-installed on GitHub ubuntu-latest runners. | |
| - name: Sync & Tag Skills | |
| run: firebase-skills/.github/scripts/sync-skills.sh | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 | |
| with: | |
| path: firebase-skills | |
| commit-message: "chore: sync updated skills" | |
| title: "chore: 🤖 Sync updated skills from Genkit" | |
| branch: "sync-skills" | |
| committer: Google Open Source Bot <firebase-oss-bot@google.com> | |
| reviewers: joehan, ssbushi | |
| token: ${{ secrets.OSS_BOT_AUTOMERGER_PAT }} |