Use APPLICATION_VERSION for version in fetch functions

This commit is contained in:
Tobias
2026-02-10 08:10:54 +01:00
committed by GitHub
parent 6f747ed36d
commit 3e20781f88

View File

@@ -1778,7 +1778,7 @@ function fetch_and_deploy_gh_release() {
local app="$1"
local repo="$2"
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile | tag
local version="${4:-latest}"
local version="${APPLICATION_VERSION:-${4:-latest}}"
local target="${5:-/opt/$app}"
local asset_pattern="${6:-}"
@@ -2230,7 +2230,7 @@ function fetch_and_deploy_codeberg_release() {
local app="$1"
local repo="$2"
local mode="${3:-tarball}" # tarball | binary | prebuild | singlefile | tag
local version="${4:-latest}"
local version="${APPLICATION_VERSION:-${4:-latest}}"
local target="${5:-/opt/$app}"
local asset_pattern="${6:-}"