Skip to content

ci: replace `clas12-validation` dispatch with reusable workflow

Baltzell, Nathan requested to merge reusable-workflow into development

Created by: c-dilks

Since other repositories (clas12Tags, clas12-config) would benefit from dispatching clas12-validation runs, this PR changes the dispatch workflow to a reusable workflow caller.

Depends on https://github.com/JeffersonLab/clas12-validation/pull/33

This PR resolves several issues:

  • PRs from forks of coatjava now successfully trigger clas12-validation workflow runs
  • no more annoying queuing issues: rapid commits on a PR branch will successfully cancel running clas12-validation workflow runs
  • no need for an access token secret
  • it is easier to find the running clas12-validation workflow run, since we are no longer dispatching; the reusable workflow means the workflow run happens here and is fully controllable here
  • the status badge in README.md is now accurate: it reflects the status of coatjava calls of clas12-validation workflow, instead of the overall status of clas12-validation workflow runs (which may likely be independent of coatjava's status)
  • significantly simpler caller workflow validation.yml: very unlikely the important part of this file will need to change, so this file may simply be added to other repos (clas12Tags and clas12-config) so they may also run clas12-validation

Merge request reports