We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e2372 commit 2fb87e0Copy full SHA for 2fb87e0
.github/workflows/generate-schema.yml
@@ -22,6 +22,14 @@ jobs:
22
run: |
23
echo "Automated commit detected - skipping job"
24
echo "skip_job=true" >> "$GITHUB_OUTPUT"
25
+ - name: Check Branch with Regex
26
+ id: check-tag
27
+ run: |
28
+ if [[ "${{ github.ref }}" =~ ^refs/heads/brapi-V[0-9]+\.[0-9]+$ ]]; then
29
+ echo "commit=true" >> $GITHUB_ENV
30
+ else
31
+ echo "commit=false" >> $GITHUB_ENV
32
+ fi
33
34
generate:
35
runs-on: ubuntu-latest
@@ -63,4 +71,5 @@ jobs:
63
71
- name: Compare OpenAPI
64
72
working-directory: ./generator
65
73
run: ./gradlew compareAll
66
- - uses: stefanzweifel/git-auto-commit-action@v5
74
+ - if: env.commit == 'true'
75
+ uses: stefanzweifel/git-auto-commit-action@v5
0 commit comments