Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/sync-bub-contrib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Sync Bub contrib

on:
schedule:
- cron: '41 3 * * 1'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: sync-bub-contrib
cancel-in-progress: false

jobs:
sync:
runs-on: ubuntu-latest
timeout-minutes: 20
env:
GH_TOKEN: ${{ secrets.LANDING_GITHUB_TOKEN || github.token }}
GH_ADMISSION_TOKEN: ${{ secrets.LANDING_ADMISSION_TOKEN || github.token }}
GIT_AUTHOR_NAME: ${{ vars.LANDING_GIT_NAME || 'github-actions[bot]' }}
GIT_AUTHOR_EMAIL: ${{ vars.LANDING_GIT_EMAIL || '41898282+github-actions[bot]@users.noreply.github.com' }}
GIT_COMMITTER_NAME: ${{ vars.LANDING_GIT_NAME || 'github-actions[bot]' }}
GIT_COMMITTER_EMAIL: ${{ vars.LANDING_GIT_EMAIL || '41898282+github-actions[bot]@users.noreply.github.com' }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@v6
- name: Prepare project and Git publishing
run: |
uv sync --frozen
git var GIT_AUTHOR_IDENT
git var GIT_COMMITTER_IDENT
gh auth setup-git
- uses: bubbuild/landing@main
env:
LANDING_MODEL: ${{ vars.LANDING_MODEL }}
LANDING_API_KEY: ${{ secrets.LANDING_API_KEY }}
LANDING_API_BASE: ${{ vars.LANDING_API_BASE }}
LANDING_COMPLETION_ARGS: ${{ vars.LANDING_COMPLETION_ARGS || '{}' }}
LANDING_MODEL_TIMEOUT_SECONDS: '120'
with:
command: fix
checks: uv run python build.py
instruction: >-
Read bubbuild/bub-contrib package and skill metadata. Update Buildscape's existing
categories and schema, preserving hand-maintained data and deduplicating without unrelated churn.
Use appropriate official or existing SVG logos, never raster wrappers or invented brand logos.
Reuse an existing sync draft or create a draft only when data or logos change; unchanged runs stay quiet.
Run uv run python build.py before publishing. Do not merge.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ categories:
| `bundled_plugins` | list | | `[{name, url}]` for distributions (max 3 shown) |

Build validates required fields, `kind` enum, and rejects unknown fields.

The catalog sync runs weekly on Mondays at 03:41 UTC or manually, proposing relevant bub-contrib updates as draft PRs and staying quiet when nothing changes.