# Snippet: minimum A2C tag-pipeline release verification (GitLab CI)
# Copy into .gitlab-ci.yml and ensure a `release` stage exists.
# Requires scripts/verify_release_version.py at repo root.
#
# See ADR-0004 and docs/workflow/ci-release-flow.md in a2c-workflow.

.workflow_tag_rule:
  rules:
    - if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/

release:verify:
  image: python:3.11-slim
  extends: .workflow_tag_rule
  stage: release
  script:
    - python scripts/verify_release_version.py "$CI_COMMIT_TAG"
