Loading .gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -30,14 +30,15 @@ check_json_format: stage: check script: - | EXIT_CODE=0 find . -type f -name "*.json" -print0 | while IFS= read -r -d '' file; do if ! diff -q <(jq . "$file") "$file" >/dev/null 2>&1; then echo "❌ Unformatted JSON: $file" EXIT_CODE=1 touch /tmp/format_json fi done exit $EXIT_CODE if [ -s /tmp/format_json ]; then exit 1 fi process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading Loading
.gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -30,14 +30,15 @@ check_json_format: stage: check script: - | EXIT_CODE=0 find . -type f -name "*.json" -print0 | while IFS= read -r -d '' file; do if ! diff -q <(jq . "$file") "$file" >/dev/null 2>&1; then echo "❌ Unformatted JSON: $file" EXIT_CODE=1 touch /tmp/format_json fi done exit $EXIT_CODE if [ -s /tmp/format_json ]; then exit 1 fi process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading