mirror of
https://github.com/sp-tarkov/build.git
synced 2025-02-12 22:10:46 -05:00
It's always the damn regex
This commit is contained in:
parent
8e59f500f5
commit
220889ed83
@ -69,16 +69,8 @@ jobs:
|
|||||||
BUILD_TYPE="bleedingmods"
|
BUILD_TYPE="bleedingmods"
|
||||||
else
|
else
|
||||||
TARGET_TAG="${{ steps.determine-target-tag.outputs.target_tag }}"
|
TARGET_TAG="${{ steps.determine-target-tag.outputs.target_tag }}"
|
||||||
|
|
||||||
# Convert tag for consistent matching
|
|
||||||
TARGET_TAG="${TARGET_TAG##*( )}" # Remove leading whitespace
|
|
||||||
TARGET_TAG="${TARGET_TAG%%*( )}" # Remove trailing whitespace
|
|
||||||
TARGET_TAG_UPPER="${TARGET_TAG^^}" # Uppercase
|
TARGET_TAG_UPPER="${TARGET_TAG^^}" # Uppercase
|
||||||
|
|
||||||
echo "Extended Globbing Support: $(shopt extglob)"
|
|
||||||
echo "Target tag: '$TARGET_TAG'"
|
|
||||||
echo "Uppercase target tag: '$TARGET_TAG_UPPER'"
|
|
||||||
|
|
||||||
# Debug build by default
|
# Debug build by default
|
||||||
# BleedingMods builds have "-BEM" in the target tag
|
# BleedingMods builds have "-BEM" in the target tag
|
||||||
# Bleeding builds have "-BE" in the target tag
|
# Bleeding builds have "-BE" in the target tag
|
||||||
@ -88,7 +80,7 @@ jobs:
|
|||||||
BUILD_TYPE="bleedingmods"
|
BUILD_TYPE="bleedingmods"
|
||||||
elif [[ "$TARGET_TAG_UPPER" =~ -BE ]]; then
|
elif [[ "$TARGET_TAG_UPPER" =~ -BE ]]; then
|
||||||
BUILD_TYPE="bleeding"
|
BUILD_TYPE="bleeding"
|
||||||
elif [[ "$TARGET_TAG_UPPER" =~ ^(v?\d+\.\d+\.\d+)$ ]]; then
|
elif [[ "$TARGET_TAG_UPPER" =~ v?[0-9]+\.[0-9]+\.[0-9]+ ]]; then
|
||||||
BUILD_TYPE="release"
|
BUILD_TYPE="release"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user