From a82f429be80d687b80ad6d99dc147476082edc85 Mon Sep 17 00:00:00 2001 From: "Felix Exner (fexner)" Date: Fri, 16 Feb 2024 17:52:24 +0100 Subject: [PATCH] Add target_workspace to ICI workflow (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add target_workspace to ICI workflow This should allow to optionally change the TARGET_WORKSPACE variable for ICI. * Make upstream workspace optional Since we want to make this file more usable, there's no need to make the flag required, while it is optional in ICI. Co-authored-by: Christoph Fröhlich --------- Co-authored-by: Christoph Fröhlich --- .github/workflows/reusable-industrial-ci-with-cache.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-industrial-ci-with-cache.yml b/.github/workflows/reusable-industrial-ci-with-cache.yml index 96fbd4d..663a49a 100644 --- a/.github/workflows/reusable-industrial-ci-with-cache.yml +++ b/.github/workflows/reusable-industrial-ci-with-cache.yml @@ -13,7 +13,12 @@ on: upstream_workspace: description: 'UPSTREAM_WORKSPACE variable for industrial_ci. Usually path to local .repos file.' - required: true + required: false + type: string + target_workspace: + description: 'TARGET_WORKSPACE variable for industrial_ci. If not provided, defaults to the current repo.' + required: false + default: "" type: string downstream_workspace: description: 'DOWNSTREAM_WORKSPACE variable for industrial_ci. If set, downstream packages will be built and tested against this repo' @@ -88,6 +93,7 @@ jobs: - uses: 'ros-industrial/industrial_ci@master' env: UPSTREAM_WORKSPACE: ${{ inputs.upstream_workspace }} + TARGET_WORKSPACE: ${{ inputs.target_workspace }} DOWNSTREAM_WORKSPACE: ${{ inputs.downstream_workspace }} ROS_DISTRO: ${{ inputs.ros_distro }} ROS_REPO: ${{ inputs.ros_repo }}