From d2e2f5b84ead6924fc993f873fcd58ba1baad815 Mon Sep 17 00:00:00 2001 From: Russell Martin Date: Thu, 9 Nov 2023 17:06:05 -0500 Subject: [PATCH] Support template branch input `app-build-verify` workflow --- .github/workflows/app-build-verify.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/app-build-verify.yml b/.github/workflows/app-build-verify.yml index 8a3a9f51..63834b9d 100644 --- a/.github/workflows/app-build-verify.yml +++ b/.github/workflows/app-build-verify.yml @@ -36,6 +36,10 @@ on: description: "Path to use for --template for `briefcase new` to create app." default: "" type: string + briefcase-template-branch: + description: "Git branch to use for --template-branch for `briefcase new` to create app." + default: "" + type: string defaults: run: @@ -130,8 +134,11 @@ jobs: if [[ "${{ inputs.briefcase-template-source }}" != "" ]]; then TEMPLATE=$(printf -- "--template %q" "${{ inputs.briefcase-template-source }}") fi + if [[ "${{ inputs.briefcase-template-branch }}" != "" ]]; then + TEMPLATE_BRANCH=$(printf -- "--template-branch %q" "${{ inputs.briefcase-template-branch }}") + fi cd tests/apps - cat verify-${{ inputs.framework }}.config | briefcase new ${TEMPLATE} + cat verify-${{ inputs.framework }}.config | briefcase new ${TEMPLATE} ${TEMPLATE_BRANCH} # In the steps below, using the builtin functions for comparison (instead of ==) # allows for case-insensitivity to the inputs for the workflow.