Skip to content
Snippets Groups Projects
Commit 06db8428 authored by Kris Tabea Helwig's avatar Kris Tabea Helwig
Browse files

Adds a regex check for the EngineAssociation format

parent cb548683
Branches
No related tags found
No related merge requests found
......@@ -128,8 +128,7 @@ variables:
# Check for matching unreal version
- ASSOCIATION_LINE=$(grep "EngineAssociation" "${CI_PROJECT_DIR}/${PROJECT_NAME}.uproject")
- ASSOCIATION=$(echo "$ASSOCIATION_LINE" | cut -d ":" -f 2 | cut -d "\"" -f 2 | cut -d "\"" -f 1)
- if [ "$ASSOCIATION" != "$UNREAL_VERSION" ]
- then
- if [[ $ASSOCIATION = [0-9]*\.[0-9]* && "$ASSOCIATION" != "$UNREAL_VERSION" ]]; then
- echo -e "\e[33mWARNING The Unreal Engine version on the runner does not match your project version.\nProject version:\t${ASSOCIATION}\nRunner version:\t\t${UNREAL_VERSION}\e[m"
- fi
- EXIT_CODE=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment