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
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,7 @@ variables: ...@@ -128,8 +128,7 @@ variables:
# Check for matching unreal version # Check for matching unreal version
- ASSOCIATION_LINE=$(grep "EngineAssociation" "${CI_PROJECT_DIR}/${PROJECT_NAME}.uproject") - 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) - ASSOCIATION=$(echo "$ASSOCIATION_LINE" | cut -d ":" -f 2 | cut -d "\"" -f 2 | cut -d "\"" -f 1)
- if [ "$ASSOCIATION" != "$UNREAL_VERSION" ] - if [[ $ASSOCIATION = [0-9]*\.[0-9]* && "$ASSOCIATION" != "$UNREAL_VERSION" ]]; then
- 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" - 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 - fi
- EXIT_CODE=0 - EXIT_CODE=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment