parameters:
  path:
    type: string
    default: .

steps:
  - run:
      name: Check git untracked changes
      command: |
        res=`git status << parameters.path >> --porcelain`
        if [[ $res ]]
        then
          echo "ERROR: Running one of the previous commands has introduced changes. Hence, failing the build."
          echo $res
          exit 1
        fi
