From 4cf9867000824ef3eb7ad192bdc6936477904295 Mon Sep 17 00:00:00 2001 From: Antoine Bouhours Date: Mon, 28 Oct 2024 08:03:50 +0100 Subject: [PATCH] Update multireporelease.yml --- .github/workflows/multireporelease.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multireporelease.yml b/.github/workflows/multireporelease.yml index c1412bb..e7b0a53 100644 --- a/.github/workflows/multireporelease.yml +++ b/.github/workflows/multireporelease.yml @@ -30,16 +30,15 @@ jobs: RELEASE_VERSION="${{ github.event.inputs.releaseVersion }}" COMMIT_DATE="${{ github.event.inputs.commitDate }}" - if ! [[ "$RELEASE_VERSION" =~ ^v[0-9]+\.[0-9]+$ ]]; then + if ! [ "$RELEASE_VERSION" =~ ^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 ! [ "$COMMIT_DATE" =~ ^[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 - + - name: Get Commit SHA for Repository ${{ matrix.repo }} id: get-sha run: |