From 7fa70202c18cc95b5fe4c4030637d7429b9159f6 Mon Sep 17 00:00:00 2001 From: ramdani koernia Date: Thu, 25 Apr 2024 22:35:01 +0700 Subject: [PATCH] fix release workflow --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae77d63..04c723d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,10 +35,10 @@ jobs: echo "tag=$(git tag -l | grep -v -E '^.*-hotfix\..*$' | sed '/-/!{s/$/_/;}' \ | sort -V | sed 's/_$//' | tail -1)" >> "$GITHUB_OUTPUT" - - name: Check Prerelease Version + - name: Check Pervious Version run: | - if ! [[ ${{ steps.latest-tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+\-rc\.[0-9]+$ ]]; then - echo "Invalid Prerelease Version" + if ! [[ ${{ steps.latest-tag.outputs.tag }} =~ ^v[0-9]+\.[0-9]+\.[0-9] ]]; then + echo "Invalid Pervious Version" exit 1 fi