Repository navigation
Closed
Description
Centralizes the per-repo llm-enrichment.yml (currently shipped to 123 dataset repos) into a single shared workflow on this repo. Pairs with Phase 1 of epic nemarOrg/nemar-cli#601 (sub-issue nemarOrg/nemar-cli#602).
Workflow
.github/workflows/run-enrichment.yml
- Triggers
repository_dispatch[run-enrichment]fromapi.nemar.org/webhooks/github(new endpoint, lands in Phase 1: centralize llm-enrichment workflow nemarOrg/nemar-cli#602)workflow_dispatchfor manual recovery / smoke-testing
- Inputs / client_payload:
dataset_id(required),ref(defaultmain),force(bool, defaultfalse) - Steps
- Mint per-repo App installation token via
actions/create-github-app-token@v1withrepositories: ${{ ...dataset_id }}so the token is least-scope per run - Check out the target dataset repo at the given ref (not
.githubitself) - POST
https://api.nemar.org/webhooks/llm-enrichwith the retry contract from feat(workflow): retry HTTP 5xx and fail loud in llm-enrichment.yml nemarOrg/nemar-cli#599: 3 attempts, 5s/10s/15s linear backoff, 4xx terminal (with 401 carved out for token rotation), exit 1 on persistent failure - If response
client_commits: true: write.nemar/metadata.json+ update.bidsignore, commit asnemar-publish-bot, push withgit pull --rebaseretry loop
- Mint per-repo App installation token via
Operator-facing semantics are identical to today's per-repo workflow; only the location and trigger source change.
Ship order
- (this PR) Land workflow — idle until the Worker dispatcher lands.
- (nemar-cli#602) Worker
/webhooks/github+ dispatcher. - Configure App webhook URL to api.nemar.org/webhooks/github.
- Strip per-repo
llm-enrichment.ymlfrom all 123 dataset repos.
Test plan
After merge:
gh workflow run run-enrichment.yml --repo nemarDatasets/.github -f dataset_id=nm099999 -f force=true
gh run watch
curl https://api.nemar.org/datasets/nm099999 | jq .dataset.enrichment_json
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(ci): add central run-enrichment workflow