Loading .gitlab-ci.yml +3 −6 Original line number Diff line number Diff line Loading @@ -30,17 +30,14 @@ check_json_format: stage: check script: - | INVALID_JSON_FILES=false 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" INVALID_JSON_FILES=true EXIT_CODE=1 fi done if [ "$INVALID_JSON_FILES" == "true" ]; then echo "Some JSON files are not formatted. Please run jq to fix them." exit 1 fi exit $EXIT_CODE process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading Loading
.gitlab-ci.yml +3 −6 Original line number Diff line number Diff line Loading @@ -30,17 +30,14 @@ check_json_format: stage: check script: - | INVALID_JSON_FILES=false 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" INVALID_JSON_FILES=true EXIT_CODE=1 fi done if [ "$INVALID_JSON_FILES" == "true" ]; then echo "Some JSON files are not formatted. Please run jq to fix them." exit 1 fi exit $EXIT_CODE process_asn: image: "forge.etsi.org:5050/li/schemas-definitions/asn1test:latest" Loading