Skip to content

Bump actions/checkout from 4.2.2 to 5.0.0 #462

Bump actions/checkout from 4.2.2 to 5.0.0

Bump actions/checkout from 4.2.2 to 5.0.0 #462

Workflow file for this run

name: Check UUID validity
on: [push, pull_request]
jobs:
uuid:
runs-on: ubuntu-24.04
steps:
- name: Install jq
uses: dcarbone/install-jq-action@b7ef57d46ece78760b4019dbc4080a1ba2a40b45
with:
version: 1.7
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Check
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