Skip to content

Commit a6d026d

Browse files
authored
Add fail-on-warn flag to action (#5)
1 parent 40303d4 commit a6d026d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

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)