mirror of
https://github.com/matifali/update-coder-template.git
synced 2024-11-10 08:55:47 +08:00
fix workflow
This commit is contained in:
parent
194cdbfd0c
commit
96e8861edb
1 changed files with 2 additions and 1 deletions
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue