fix workflow

This commit is contained in:
Muhammad Atif Ali 2023-08-11 12:40:59 +03:00
parent 194cdbfd0c
commit 96e8861edb

View file

@ -16,7 +16,8 @@ jobs:
- name: Check if tag name has alpha or beta
id: check_tag_name
run: |
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-(alpha|beta)\.[0-9]+$ ]]; then
set -euo pipefail
if [[ "${{ github.ref }}" =~ -(alpha|beta)- ]]; then
echo "PRE_RELEASE=true" >> $GITHUB_ENV
else
echo "PRE_RELEASE=false" >> $GITHUB_ENV