Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support template branch input app-build-verify workflow #64

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading