diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79d6386991..77fc4c39c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,8 +49,7 @@ jobs: - name: Verify that all UUIDs are indeed unique run: | duplicate_uuids=$(cat exercises/*/canonical-data.json | - grep '"uuid":' | # select UUID line - sed -E 's/.*"([^"]+)".*/\1/' | # extract JSON value + jq -r '.. |."uuid"? | select(. != null)' | # select all UUIDs sort | uniq -d) # check for repeated UUIDs if [ -n "$duplicate_uuids" ]; then echo "The following UUIDs are not unique:"