Skip to content

Commit b6dc25a

Browse files
committed
update variable definitions
Signed-off-by: Steve Peters <scpeters@intrinsic.ai>
1 parent 9225538 commit b6dc25a

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci_dependencies_from_source.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ name: Ubuntu CI
33
on:
44
workflow_dispatch:
55
inputs:
6-
vcs_repo_file_url:
7-
description: URL to vcs repo file to import into colcon workspace
6+
vcs-repo-file-is-relative:
7+
description: If true the vcs-repo-file is a relative path in the github workspace; otherwise it is a URL.
8+
type: bool
9+
required: True
10+
default: True
11+
vcs-repo-file:
12+
description: Relative path or URL to vcs repo file to import into colcon workspace
813
required: true
914
type: string
10-
default: "${{ github.workspace }}/.github/ci/packages_up_to_sdformat.yaml"
15+
default: ".github/ci/packages_up_to_sdformat.yaml"
1116

1217
jobs:
1318
noble-ci:
@@ -23,7 +28,7 @@ jobs:
2328
with:
2429
package-name: sdformat
2530
target-ros2-distro: kilted
26-
vcs-repo-file-url: "${{ inputs.vcs_repo_file_url }}"
31+
vcs-repo-file-url: ${{ inputs.vcs-repo-file-is-relative && format('{0}/', github.workspace) }}${{ inputs.vcs-repo-file }}
2732
colcon-defaults: |
2833
{
2934
"build": {

0 commit comments

Comments
 (0)