Skip to content

Commit 1faff73

Browse files
committed
Add fail-on-warn flag to action
1 parent 40303d4 commit 1faff73

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ inputs:
66
validationfile:
77
description: "path to the YAML file containing schema, test relationships, assertions and expected relations"
88
required: true
9+
fail-on-warn:
10+
description: "whether validation warnings should cause the validation to fail"
11+
required: false
912
runs:
1013
using: "docker"
1114
image: "Dockerfile"

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#/bin/bash
2-
/zed validate $INPUT_VALIDATIONFILE
2+
ARGS=""
3+
4+
[[ $INPUT_FAIL_ON_WARN == "true" ]] && ARGS+="--fail-on-warn "
5+
6+
/zed validate $ARGS $INPUT_VALIDATIONFILE

0 commit comments

Comments
 (0)