From 220889ed83eba4dc536ab89b65bdf69a3175f2d3 Mon Sep 17 00:00:00 2001 From: Refringe Date: Fri, 29 Mar 2024 13:17:27 -0400 Subject: [PATCH] It's always the damn regex --- .gitea/workflows/build.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 46032b5..bc7507a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -69,16 +69,8 @@ jobs: BUILD_TYPE="bleedingmods" else 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 - echo "Extended Globbing Support: $(shopt extglob)" - echo "Target tag: '$TARGET_TAG'" - echo "Uppercase target tag: '$TARGET_TAG_UPPER'" - # Debug build by default # BleedingMods builds have "-BEM" in the target tag # Bleeding builds have "-BE" in the target tag @@ -88,7 +80,7 @@ jobs: BUILD_TYPE="bleedingmods" elif [[ "$TARGET_TAG_UPPER" =~ -BE ]]; then 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" fi fi