Skip to content

Commit

Permalink
Update multireporelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebhs authored Oct 28, 2024
1 parent 4cf9867 commit 2c91ce3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/multireporelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c91ce3

Please sign in to comment.