Skip to content

anagram: sync (#586) #386

anagram: sync (#586)

anagram: sync (#586) #386

Workflow file for this run

name: Check UUID validity
on: [push, pull_request]
jobs:
uuid:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- run: sudo apt install --yes jq
- run: |
bad_uuid=$(cat config.json | jq --raw-output '.exercises | map(.uuid) | .[]' | grep -vE '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' || true)
if [[ -n "$bad_uuid" ]]; then
printf "Invalid UUID(s) found:"
printf "%s" "${bad_uuid}"
exit 1
fi