From dfcdcb8a29588a7db8f05123a300271a4a6be88d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 12:45:51 +0000 Subject: [PATCH 1/3] Initial plan From 418c6f6ccb4ef56b8bdb74b514f02693c22ad1ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 12:49:58 +0000 Subject: [PATCH 2/3] Add tag format validation to prevent invalid tags from triggering workflow Co-authored-by: hmasdev <73353463+hmasdev@users.noreply.github.com> --- .github/workflows/on_push_tags.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/on_push_tags.yaml b/.github/workflows/on_push_tags.yaml index d3ccdb7..a7f4d28 100644 --- a/.github/workflows/on_push_tags.yaml +++ b/.github/workflows/on_push_tags.yaml @@ -6,7 +6,27 @@ on: - "*.*.*" jobs: + check-tag-format: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Validate Tag Format + run: | + tag="${{ github.ref_name }}" + echo "Validating tag: $tag" + + # Check if tag matches vMAJOR.MINOR.PATCH format + if [[ ! "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Error: Tag '$tag' does not match the expected \ + format 'vMAJOR.MINOR.PATCH'" + echo "Examples of valid tags: v1.0.0, v2.3.4, v10.20.30" + exit 1 + fi + + echo "Tag format is valid: $tag" validate-version: + needs: [check-tag-format] uses: ./.github/workflows/validate-version-workflow-call.yaml with: git-ref: ${{ github.ref }} From 7a92d8d09c935876d6c40e8dc3982e8721e9b9e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 5 Dec 2025 12:51:33 +0000 Subject: [PATCH 3/3] Improve error message formatting in tag validation Co-authored-by: hmasdev <73353463+hmasdev@users.noreply.github.com> --- .github/workflows/on_push_tags.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_push_tags.yaml b/.github/workflows/on_push_tags.yaml index a7f4d28..18fb41f 100644 --- a/.github/workflows/on_push_tags.yaml +++ b/.github/workflows/on_push_tags.yaml @@ -18,8 +18,8 @@ jobs: # Check if tag matches vMAJOR.MINOR.PATCH format if [[ ! "$tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "Error: Tag '$tag' does not match the expected \ - format 'vMAJOR.MINOR.PATCH'" + echo "Error: Tag '$tag' does not match the expected format" + echo "Expected format: vMAJOR.MINOR.PATCH" echo "Examples of valid tags: v1.0.0, v2.3.4, v10.20.30" exit 1 fi