---
.version-pin-check:
  image: docker.io/bash:latest
  stage: .pre
  variables:
    GIT_STRATEGY: none
  script:
    - |
      VAR_NAME=$(echo "${CI_JOB_NAME}" | cut -d':' -f2-)
      if [ "${VAR_NAME}" != "" ]; then
        echo "${VAR_NAME} is not pinned (correctly) and is currently set to ${!VAR_NAME}."
      fi
    - exit 1
  allow_failure: true
