From 4f1ea96308d66b9d1c2c3964c6f90c5f391fae4c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 Nov 2025 17:57:07 +0100 Subject: [PATCH] Test argument. --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6f66bd7d4..dd3331be5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,14 @@ jobs: extensions: mbstring, intl, zip, bcmath - name: Switch and pull run: | + # validate argument + if [[ $version != d* ]] && [[ $version != v* ]] ; + then + echo 'Argument does not start with a d or with a v' + exit 1 + fi + + # # Always check out origin/develop, unless its a branch release. #