ci: replace `clas12-validation` dispatch with reusable workflow
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 triggerclas12-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 ofcoatjava
calls ofclas12-validation
workflow, instead of the overall status ofclas12-validation
workflow runs (which may likely be independent ofcoatjava
'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
andclas12-config
) so they may also runclas12-validation