Skip to content

Commit dcd2c8f

Browse files
committed
Add inputs.fork to beaker_acceptance.yml
Allows running the workflow against a project fork to test changes to the acceptance suite from a pr from a fork.
1 parent 85f495d commit dcd2c8f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/beaker_acceptance.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ name: Run Beaker acceptance tests on an OpenVox project
33
on:
44
workflow_call:
55
inputs:
6+
project-name:
7+
description: The OpenVox project to test.
8+
required: true
9+
type: string
610
ref:
711
description: |-
812
The git ref of the project-name Beaker test suite to run.
913
required: true
1014
type: string
11-
project-name:
12-
description: The OpenVox project to test.
15+
fork:
16+
description: |-
17+
The github fork of the project-name Beaker test suite to run.
1318
required: true
1419
type: string
20+
default: openvoxproject
1521
install-openvox:
1622
description: |-
1723
Whether or not to install any openvox packages on the
@@ -280,7 +286,7 @@ jobs:
280286
# Ensure that we checkout the project we want to test rather
281287
# than the repository that this workflow is being called
282288
# from.
283-
repository: ${{ format('openvoxproject/{0}', inputs.project-name) }}
289+
repository: ${{ format('{0}/{1}', inputs.fork, inputs.project-name) }}
284290
ref: ${{ inputs.ref }}
285291
path: ${{ inputs.project-name }}
286292

0 commit comments

Comments
 (0)