mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
WIP: Fix fetching Uranium
This commit is contained in:
parent
88196fa62b
commit
208ab6421f
2 changed files with 22 additions and 4 deletions
|
|
@ -20,7 +20,8 @@ cd "${PROJECT_DIR}"
|
|||
# Check the branch to use:
|
||||
# 1. Use the Uranium branch with the branch same if it exists.
|
||||
# 2. Otherwise, use the default branch name "master"
|
||||
URANIUM_BRANCH="${CI_COMMIT_REF_NAME:-master}"
|
||||
echo "GIT_REF_NAME: ${GIT_REF_NAME}"
|
||||
URANIUM_BRANCH="${GIT_REF_NAME:-master}"
|
||||
output="$(git ls-remote --heads https://github.com/Ultimaker/Uranium.git "${URANIUM_BRANCH}")"
|
||||
if [ -z "${output}" ]; then
|
||||
echo "Could not find Uranium banch ${URANIUM_BRANCH}, fallback to use master."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue