Skip to content

Commit

Permalink
update exit logic + gh tag action (#5) #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
psprings authored Mar 24, 2021
1 parent 3d0ccc7 commit 5b98341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
- uses: actions/checkout@v2
- name: Bump version and push tag
if: ${{ github.event_name == 'push' }}
uses: anothrNick/github-tag-action@1.17.2
uses: anothrNick/github-tag-action@1.35.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
RELEASE_BRANCHES: main,release*
6 changes: 5 additions & 1 deletion okv/okv.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ def included_ok_schema(oktype):
def composite_error_message(result, root_validation_error=None):
results = []
for given_result in result:
if given_result.isValid():
continue
results.append(str(given_result))
if root_validation_error:
for error_result in root_validation_error.results:
for error in error_result.errors:
error_string = '\t{0}'.format(str(error))
results.append(error_string)
return '\n'.join(results)
if results:
return '\n'.join(results)
return None


def _handle_error_exit(error_messages):
Expand Down

0 comments on commit 5b98341

Please sign in to comment.