mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
WIP: Fix GH Actions for Uranium fetching
This commit is contained in:
parent
d12edaff10
commit
de9a07e6c1
6
.github/workflows/cicd.yml
vendored
6
.github/workflows/cicd.yml
vendored
@ -7,9 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ultimaker/cura-build-environment
|
container: ultimaker/cura-build-environment
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout master
|
- name: Checkout Cura
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
env:
|
|
||||||
GIT_REF_NAME: github.ref
|
|
||||||
run: docker/build.sh
|
run: docker/build.sh
|
||||||
|
@ -20,7 +20,14 @@ cd "${PROJECT_DIR}"
|
|||||||
# Check the branch to use:
|
# Check the branch to use:
|
||||||
# 1. Use the Uranium branch with the branch same if it exists.
|
# 1. Use the Uranium branch with the branch same if it exists.
|
||||||
# 2. Otherwise, use the default branch name "master"
|
# 2. Otherwise, use the default branch name "master"
|
||||||
echo "GIT_REF_NAME: ${GIT_REF_NAME}"
|
echo "GITHUB_REF: ${GITHUB_REF}"
|
||||||
|
echo "GITHUB_BASE_REF: ${GITHUB_BASE_REF}"
|
||||||
|
|
||||||
|
GIT_REF_NAME="${GITHUB_REF}"
|
||||||
|
if [ -n "${GITHUB_BASE_REF}" ]; then
|
||||||
|
GIT_REF_NAME="${GITHUB_BASE_REF}"
|
||||||
|
fi
|
||||||
|
|
||||||
URANIUM_BRANCH="${GIT_REF_NAME:-master}"
|
URANIUM_BRANCH="${GIT_REF_NAME:-master}"
|
||||||
output="$(git ls-remote --heads https://github.com/Ultimaker/Uranium.git "${URANIUM_BRANCH}")"
|
output="$(git ls-remote --heads https://github.com/Ultimaker/Uranium.git "${URANIUM_BRANCH}")"
|
||||||
if [ -z "${output}" ]; then
|
if [ -z "${output}" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user