We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf9f08 commit daa9f61Copy full SHA for daa9f61
.github/workflows/generate-schema.yml
@@ -25,14 +25,13 @@ jobs:
25
- name: Check Branch with Regex
26
id: check-tag
27
run: |
28
- regex="^refs/heads/brapi-V[0-9]+\.[0-9]+\$"
29
- github_ref="${{ github.ref }}"
30
- if [[ $github_ref =~ $regex ]]; then
+ regex="^refs/heads/brapi-V[0-9]+\.[0-9]+$"
+ if [[ "${{ github.ref }}" =~ $regex ]]; then
31
echo "commit=true" >> $GITHUB_ENV
32
else
33
echo "commit=false" >> $GITHUB_ENV
34
fi
35
- if [[ ${{ env.commit }} == 'true']]; then
+ if [[ $commit == 'true']]; then
36
echo "Release branch - will commit generated files"
37
38
echo "Feature branch - will NOT commit generated files"
0 commit comments