Repository navigation
feat(ci): add central run-version-doi workflow - #8
Merged
Merged
Conversation
Closes #7. Phase 2 of nemarOrg/nemar-cli#601. Sibling to #5 (run-enrichment.yml). Lifts the per-repo version-doi.yml into a single shared workflow. Triggered by repository_dispatch[run-version-doi] from /webhooks/github tag-push handler (lands in nemarOrg/nemar-cli#606).
4 of 7 tasks
Code-review findings: 1) refresh step had continue-on-error + exit 0 redundancy; the continue-on-error alone suffices to keep the job moving, so make the script exit 1 on real failures so the step shows red in the Actions UI as an operator signal (matches run-enrichment.yml's discipline). 2) publish-version-doi step had no retry but was fatal on failure; add a 2-attempt retry with 10s backoff for 5xx and curl-level failures. 4xx remains terminal. The Worker idempotency guard for Zenodo duplicate mints landed in nemarOrg/nemar-cli#607 so retry-after-success-then-blip is safe.
neuromechanist
added a commit
that referenced
this pull request
May 23, 2026
Closes #9. Phase 3 of nemarOrg/nemar-cli#601. Sibling to #5 (run-enrichment) and #8 (run-version-doi). Lifts the per-repo generate-archive.yml template — already repository_dispatch-driven so the Worker just retargets the dispatch URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7. Phase 2 of nemarOrg/nemar-cli#601, sibling to #5 (run-enrichment.yml).
What
New
.github/workflows/run-version-doi.yml— central version-DOI workflow for NEMAR datasets. Lifts the per-repoversion-doi.ymltemplate that previously shipped to every dataset repo bydeployWorkflows()in nemarOrg/nemar-cli.repository_dispatch[run-version-doi]from/webhooks/githubwhen a v* tag is pushed (handler lands in Phase 2: centralize version-doi workflow nemarOrg/nemar-cli#606).workflow_dispatchwithdataset_id+taginputs for manual recovery.--connect-timeout 10 --max-time 180per the Phase 1 hardening (fix(run-enrichment): git add -f to override .gitignore on .nemar/ #6).POST /webhooks/publish-version-doi.nemarDatasets/<dataset_id>(NOT${{ github.repository }}which would target.github). Stays correct until Phase 3 centralizes generate-archive.permissions: {}at both job levels; all gh-cli calls authenticate via App token, not the defaultGITHUB_TOKEN.Test plan
After merge:
Expect green. The publish-DOI step returns
skipped: truefor nm099999 (no concept DOI), which is the correct path-validation outcome — we're testing the dispatch + workflow plumbing, not the data.