Skip to content

Add central run-version-doi workflow #7

Closed

Description

@neuromechanist

Phase 2 of nemarOrg/nemar-cli#601. Sibling to #5 (run-enrichment.yml).

What

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

  1. added a commit that references this issue on May 23, 2026
    181c2b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions