You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .github/workflows/run-version-doi.yml. Lifts the existing per-repo version-doi.yml template into a single shared workflow on .github. Triggered by repository_dispatch[run-version-doi] from the Worker's /webhooks/github push handler (which gains a tag-push branch in nemarOrg/nemar-cli#606), and by workflow_dispatch for manual recovery.
Mints a per-repo App token scoped to client_payload.dataset_id.
Checks out the target dataset repo at client_payload.tag.
Creates the GitHub release if missing.
Refreshes enrichment (POST /webhooks/llm-enrich with ref=$TAG, force=true, client_commits=true) — continue-on-error, hardened with --connect-timeout 10 --max-time 180.
Publishes the version DOI via POST /webhooks/publish-version-doi.
Dispatches archive generation against nemarDatasets/<dataset_id> (NOT ${{ github.repository }} which would target .github). Stays correct until Phase 3 centralizes generate-archive too.
Why
Pairs with the per-repo version-doi.yml strip in nemarOrg/nemar-cli#606. Same justification as Phase 1: 123-way fork on every fix, OpenNeuro mass-import multiplies the surface, generate-manifest centralization (#1) and run-enrichment centralization (#5) proved the pattern.
Test plan
gh workflow run run-version-doi.yml --repo nemarDatasets/.github \
-f dataset_id=nm099999 -f tag=v0.0.0-rc1
gh run watch
Expect green; the publish-version-doi step returns skipped: true for nm099999 (no concept DOI), which is the correct path-validation outcome.
Activity
feat(ci): add central run-version-doi workflow