From e714013ef545eaec22b2981c7bf06ba5a908daa6 Mon Sep 17 00:00:00 2001 From: Kristijonas M Date: Mon, 31 Oct 2022 16:52:42 +0100 Subject: [PATCH] feat: added optional submodule pull (#41) Co-authored-by: Kristijonas Malisauskas Co-authored-by: Eric Ribeiro --- src/jobs/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jobs/build.yml b/src/jobs/build.yml index 9e3d49d..00fc686 100755 --- a/src/jobs/build.yml +++ b/src/jobs/build.yml @@ -69,6 +69,11 @@ parameters: description: | Whether to return the license used to build the project. Unity only allows returning professional licenses. + fetch-submodules: + type: boolean + default: false + description: | + Whether to fetch git submodules no_output_timeout: type: string default: "20m" @@ -93,6 +98,12 @@ executor: << parameters.executor >> steps: - checkout + - run: + name: Fetch submodules + command: | + git submodule sync + git submodule update --init + condition: << parameters.fetch-submodules >> - prepare-env: unity-username-var-name: << parameters.unity-username-var-name >> unity-password-var-name: << parameters.unity-password-var-name >>