Skip to content

Commit daa9f61

Browse files
Update generate-schema.yml
1 parent 2cf9f08 commit daa9f61

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/generate-schema.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ jobs:
2525
- name: Check Branch with Regex
2626
id: check-tag
2727
run: |
28-
regex="^refs/heads/brapi-V[0-9]+\.[0-9]+\$"
29-
github_ref="${{ github.ref }}"
30-
if [[ $github_ref =~ $regex ]]; then
28+
regex="^refs/heads/brapi-V[0-9]+\.[0-9]+$"
29+
if [[ "${{ github.ref }}" =~ $regex ]]; then
3130
echo "commit=true" >> $GITHUB_ENV
3231
else
3332
echo "commit=false" >> $GITHUB_ENV
3433
fi
35-
if [[ ${{ env.commit }} == 'true']]; then
34+
if [[ $commit == 'true']]; then
3635
echo "Release branch - will commit generated files"
3736
else
3837
echo "Feature branch - will NOT commit generated files"

0 commit comments

Comments
 (0)