mirror of
https://github.com/firebase/agent-skills.git
synced 2026-09-14 17:09:03 +08:00
87575fe6bd
Based on https://github.com/peter-evans/create-pull-request?tab=readme-ov-file#action-inputs
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
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 }}
|