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 3f2777f commit 4cf9867
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/multireporelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 4cf9867

Please sign in to comment.