Commit 95f0621c authored by Steije van Schelt's avatar Steije van Schelt
Browse files

Better check

parent a1a22cc9
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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"