Skip to content

Commit c6e07cb

Browse files
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.
2 parents 8d89e28 + a622fc0 commit c6e07cb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/revdeps.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Reverse Dependencies
22

33
on:
4+
workflow_call:
5+
inputs:
6+
packages:
7+
required: true
8+
type: string
9+
dune_version:
10+
required: true
11+
type: string
412
workflow_dispatch:
513
inputs:
614
packages:

0 commit comments

Comments
 (0)