Skip to content

Commit 5b98341

Browse files
authored
update exit logic + gh tag action (#5) #patch
1 parent 3d0ccc7 commit 5b98341

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/push-main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- name: Bump version and push tag
1313
if: ${{ github.event_name == 'push' }}
14-
uses: anothrNick/github-tag-action@1.17.2
14+
uses: anothrNick/github-tag-action@1.35.0
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
WITH_V: true
18-
RELEASE_BRANCHES: main,release*

okv/okv.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,17 @@ def included_ok_schema(oktype):
6363
def composite_error_message(result, root_validation_error=None):
6464
results = []
6565
for given_result in result:
66+
if given_result.isValid():
67+
continue
6668
results.append(str(given_result))
6769
if root_validation_error:
6870
for error_result in root_validation_error.results:
6971
for error in error_result.errors:
7072
error_string = '\t{0}'.format(str(error))
7173
results.append(error_string)
72-
return '\n'.join(results)
74+
if results:
75+
return '\n'.join(results)
76+
return None
7377

7478

7579
def _handle_error_exit(error_messages):

0 commit comments

Comments
 (0)