Skip to content

Commit be03fba

Browse files
committed
use env secret to set test or prod
1 parent 707507b commit be03fba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-release.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Build Release
33

44
on:
55
push:
6-
tags: ${{ variables.BUILD_TAGS }}
6+
tags: v[1-9]+.[0-9]+.*
7+
78

89
jobs:
910
test:
@@ -24,8 +25,8 @@ jobs:
2425

2526
- name: Show the discovered version
2627
run: |
27-
if [[ $RELEASE_VERSION = "refs/heads/master" ]]; then
28-
echo "RELEASE_VERSION=testing-RC1" >> $GITHUB_ENV
28+
if [[ ${{ secrets.BUILD_TEST }} ]]; then
29+
echo "RELEASE_VERSION=build-testing-RC1" >> $GITHUB_ENV
2930
fi
3031
echo \$RELEASE_VERSION = $RELEASE_VERSION
3132
echo \$\{\{ env.RELEASE_VERSION \}\} = ${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)