Skip to content

Add central run-version-check workflow (unblocks PRs where per-repo Actions are unavailable) - #91

Merged
bruAristimunha merged 1 commit into
mainfrom
add-central-version-check
Aug 12, 2026
Merged

bruAristimunha merged 1 commit into
mainfrom
add-central-version-check

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

version-check is a required status check in the NEMAR branch protection ruleset, but it exists only as a per-repo workflow. Where per-repo Actions are unavailable the check can never be produced, so PRs stay BLOCKED indefinitely — even though Run BIDS Validation already passes via the central workflow.

This adds run-version-check.yml, mirroring run-bids-validation.yml:

  • repository_dispatch[run-version-check] with {dataset_id, ref, head_sha, pr_number}, plus workflow_dispatch for manual recovery
  • mints a per-repo App token scoped to the target dataset repo
  • posts a check-run named exactly version-check on the PR head SHA
  • compares Version in dataset_description.json between the branch and main, same logic as the per-repo workflow
  • completes the check with success/failure

Continues the centralisation in nemarOrg/nemar-cli#601 (run-enrichment Phase 1, run-version-doi Phase 2).

Context: 37 sourcedata-enrichment PRs are currently blocked on exactly this, each already passing Run BIDS Validation.

version-check is a required status check in the NEMAR branch protection ruleset,
but it only exists as a per-repo workflow. Where per-repo Actions are unavailable
the check can never be produced, so enrichment PRs stay BLOCKED forever even
though Run BIDS Validation already passes centrally.

This mirrors run-bids-validation.yml: mint a per-repo App token, post a check-run
named exactly 'version-check' on the PR head SHA, compare dataset_description.json
Version between the branch and main, and complete the check.

Currently 37 sourcedata PRs are blocked on this.
@bruAristimunha
bruAristimunha merged commit ba8f7ea into main Aug 12, 2026
bruAristimunha added a commit to bruAristimunha/nemar-cli that referenced this pull request Aug 12, 2026
version-check is a REQUIRED status check in the NEMAR branch protection
ruleset, but it shipped as a full per-repo workflow. On any dataset repo
where per-repo Actions do not run, the check can never be produced, so PRs
stay BLOCKED indefinitely even when Run BIDS Validation already passes
centrally.

This mirrors the BIDS Validation shim (Phase 4, nemarOrg#610): the per-repo file now
just dispatches repository_dispatch[run-version-check] at nemarDatasets/.github,
where run-version-check.yml performs the comparison and posts the required
'version-check' check-run back onto the PR head SHA.

Central workflow: nemarDatasets/.github#91 (merged).
Unblocked 37 sourcedata-enrichment PRs that were stuck on this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant