From 9e594dc2ae3e77562ad8f69d4f037e38b325b711 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Wed, 2 Oct 2024 10:58:26 +0100 Subject: [PATCH] Validate version --- .github/workflows/pre-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index bbcfff1d..343d47e8 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -18,6 +18,12 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} metadata-file-path: '.github/project.yml' + - name: Validate version + if: contains(steps.metadata.outputs.current-version, 'SNAPSHOT') + run: | + echo '::error::Cannot release a SNAPSHOT version.' + exit 1 + - uses: radcortez/milestone-review-action@main name: milestone review with: