From 2c91ce30ad01b2855438aca32da1e8520e5a2c8b Mon Sep 17 00:00:00 2001 From: Antoine Bouhours Date: Mon, 28 Oct 2024 08:06:10 +0100 Subject: [PATCH] Update multireporelease.yml --- .github/workflows/multireporelease.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multireporelease.yml b/.github/workflows/multireporelease.yml index e7b0a53..d3e3fea 100644 --- a/.github/workflows/multireporelease.yml +++ b/.github/workflows/multireporelease.yml @@ -30,11 +30,12 @@ jobs: RELEASE_VERSION="${{ github.event.inputs.releaseVersion }}" COMMIT_DATE="${{ github.event.inputs.commitDate }}" - if ! [ "$RELEASE_VERSION" =~ ^v[0-9]+\.[0-9]+$ ]; then + if ! echo "$RELEASE_VERSION" | grep -Eq '^v[0-9]+\.[0-9]+$'; then echo "Error: Invalid release version format. Expected format: vX.X" exit 1 fi - if ! [ "$COMMIT_DATE" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$ ]; then + + if ! echo "$COMMIT_DATE" | grep -Eq '^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$'; then echo "Error: Invalid commit date format. Expected format: YYYY-MM-DD HH:MM:SS" exit 1 fi