Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96e8861

Browse files
committed
fix workflow
1 parent 194cdbf commit 96e8861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- name: Check if tag name has alpha or beta
1717
id: check_tag_name
1818
run: |
19-
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-(alpha|beta)\.[0-9]+$ ]]; then
19+
set -euo pipefail
20+
if [[ "${{ github.ref }}" =~ -(alpha|beta)- ]]; then
2021
echo "PRE_RELEASE=true" >> $GITHUB_ENV
2122
else
2223
echo "PRE_RELEASE=false" >> $GITHUB_ENV

0 commit comments

Comments
 (0)