Skip to content

Commit 2fb87e0

Browse files
author
Guy Davenport
committed
updated CI action
1 parent 00e2372 commit 2fb87e0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/generate-schema.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ jobs:
2222
run: |
2323
echo "Automated commit detected - skipping job"
2424
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
2533
2634
generate:
2735
runs-on: ubuntu-latest
@@ -63,4 +71,5 @@ jobs:
6371
- name: Compare OpenAPI
6472
working-directory: ./generator
6573
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

Comments
 (0)