Skip to content

Commit

Permalink
implement correct failure / return code
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenBrinckmann committed Oct 31, 2023
1 parent 4667f34 commit 4b936cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/validator_pypi_rocrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: validate
run: |
import os
import sys
import tempfile
from pathlib import Path
from zipfile import ZIP_DEFLATED
Expand All @@ -29,6 +30,7 @@ jobs:
from rocrate.model.entity import Entity
from rocrate.model.contextentity import ContextEntity
success = 0
for root, _, files in os.walk(".", topdown=False):
for name in files:
if not name.endswith('.eln'):
Expand All @@ -47,4 +49,6 @@ jobs:
print(f' {e.id}: {e.type}')
except Exception:
print(" ***** ERROR: Could not parse content of this file!! *****")
success = 1
sys.exit(success)
shell: python

0 comments on commit 4b936cd

Please sign in to comment.