Skip to content

Commit aeb2b38

Browse files
committed
skip if no schema is defined
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
1 parent 7faf644 commit aeb2b38

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/check_examples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
- name: Validate SCXML file
3333
run: |
3434
SCHEMA_PATH=$(xmllint --xpath 'string(//@*[local-name()="noNamespaceSchemaLocation"])' "${{ matrix.path }}")
35+
if [ -z "$SCHEMA_PATH" ]; then
36+
echo "No schema found for file: ${{ matrix.path }}. Skipping validation."
37+
exit 0
38+
fi
3539
SCHEMA_DIR=$(dirname "${{ matrix.path }}")
3640
SCHEMA_PATH="$SCHEMA_DIR/$SCHEMA_PATH"
3741
echo "Using schema: $SCHEMA_PATH"

0 commit comments

Comments
 (0)