yihui / knitr-examples

A collection of knitr examples
488 stars 586 forks source link

Add a GHA workflow to trigger a new check in knitr repo ? #78

Open cderv opened 3 years ago

cderv commented 3 years ago

I think it would be interesting to add a workflow in knitr-example that would trigger a new run of "Check-knitr-example" workflow in knitr repo when we have a new commit to master in this repo.

That way when we push a fix because something changed in knitr we could have the workflow re-run automatically.

Should be possible using

cderv commented 2 years ago

Instead of adding a new issue I am posting here the idea.

We could also leverage a workflow_dispatch input so that we can run any branch in knitr repo against any branch in this repo using a API call like this

gh workflow run knitr-examples.yaml -f branch=<knitr-example-branch> --ref <knitr-branch>