From 44efb989be5dc95cf280746b3beb1b931169eb6d Mon Sep 17 00:00:00 2001 From: MarkG Date: Tue, 17 Dec 2024 14:07:14 +0700 Subject: [PATCH] [#557] Add validation step --- .github/project_workflows/create_release_pull_request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/project_workflows/create_release_pull_request.yml b/.github/project_workflows/create_release_pull_request.yml index 6809ae01..a1da9775 100644 --- a/.github/project_workflows/create_release_pull_request.yml +++ b/.github/project_workflows/create_release_pull_request.yml @@ -62,6 +62,12 @@ jobs: contents: write pull-requests: write steps: + - name: Validate Version Input + run: | + if ! [[ "${{ github.event.inputs.nextVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Error: nextVersion must follow semantic versioning (e.g., 1.2.3)" + exit 1 + fi - name: Create Bump Version branch uses: peterjgrainger/action-create-branch@v2.2.0 env: