diff --git a/action.yml b/action.yml index 732426d..3b8bce3 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,10 @@ inputs: description: 'Password for the signing key. Required only if signing_key_management is "local" and the signing key is password protected' required: false default: '' + backend_url: + description: 'URL of the backend server that runs the OTA update service. If not provided, the Thistle service will be used' + required: false + default: '' runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index f717a77..d10044a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -19,6 +19,7 @@ # INPUT_SIGNING_KEY_MANAGEMENT # INPUT_SIGNING_KEY # INPUT_SIGNING_KEY_PASSWORD +# INPUT_BACKEND_URL # set -euxo pipefail @@ -34,6 +35,7 @@ readonly TRH_DOWNLOAD_URL export THISTLE_KEY="${HOME}/.minisign/minisign.key" export THISTLE_KEY_PASS="${INPUT_SIGNING_KEY_PASSWORD}" export THISTLE_TOKEN="${INPUT_PROJECT_ACCESS_TOKEN}" +[ -z "${INPUT_BACKEND_URL}" ] || export THISTLE_BACKEND="${INPUT_BACKEND_URL}" err() { echo -e "$*"