Commit c6e07cb
authored
Make revdep workflow reusable (#14014)
I thought we need to make this into an action but turns out Github
supports (somewhat limited) triggering workflows from other workflows.
This change allows triggering the workflow from another workflow by
passing the workflow inputs explicitely, while still allowing to run the
action manually.
This change needs to be merged separately since to trigger a workflow a
specific repo and revision have to be specified, thus to contribute an
action that triggers this action this must be accessible as `main`.
Therefore this is a separate PR with just this single change which will
allow testing the future PR against this workflow.
The workflow spec looks like this
```yaml
uses: ocaml/dune/.github/workflows/revdeps.yml@main
```
Unfortunately the `main` has to be specified, it can't be left out and
assumed to be the same branch. Likewise `ocaml/dune` can't be left out
to specify the current repo. Quite impractical overall.1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
4 | 12 | | |
5 | 13 | | |
6 | 14 | | |
| |||
0 commit comments