Skip to content

Add central run-generate-archive workflow #9

Closed

Description

@neuromechanist

Phase 3 of nemarOrg/nemar-cli#601. Sibling to #5 (run-enrichment) and #8 (run-version-doi).

What

Add .github/workflows/run-generate-archive.yml. Lifts the existing per-repo generate-archive.yml template — the workflow that streams a dataset version's annex content into a zip and uploads it to S3 at nemar/<dataset_id>/archives/v<X.Y.Z>.zip.

Already repository_dispatch[generate-archive]-driven, so this is the lowest-friction phase — the Worker just retargets the dispatch URL from the dataset repo to .github. No new push-handler logic.

  • Validates dataset_id shape against nm|on|xx + 6 digits.
  • Mints a per-repo App installation token scoped to client_payload.dataset_id.
  • Checks out the target dataset repo at the version tag (not .github itself). Required because the streaming script resolves git-annex pointers from the dataset's working tree.
  • permissions: {} at the job level.
  • workflow_dispatch with dataset_id + version inputs for manual recovery.

Test plan

After merge:

gh workflow run run-generate-archive.yml --repo nemarDatasets/.github \
  -f dataset_id=nm099999 -f version=0.0.0-rc2
gh run watch

Expect green; archive uploaded at s3://nemar/nm099999/archives/v0.0.0-rc2.zip.

Activity

  1. added a commit that references this issue on May 23, 2026
    f9fc93e
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