Skip to content

Commit

Permalink
Merge pull request #64 from rmartin16/gui-plugin-support
Browse files Browse the repository at this point in the history
Support template branch input `app-build-verify` workflow
  • Loading branch information
freakboy3742 authored Nov 14, 2023
2 parents 6c04bf5 + d2e2f5b commit d908d34
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/app-build-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d908d34

Please sign in to comment.