executor: node

parameters:
  translations-path:
    type: string
  phrase-version:
    type: string
    default: 2.0.12

steps:
  - checkout
  - run:
      name: Install phrase
      command: wget -O ../phrase https://github.com/phrase/phrase-cli/releases/download/<< parameters.phrase-version >>/phrase_linux_amd64 && chmod +x ../phrase
  - run:
      name: Pulling phrase translation from master
      command: ../phrase pull
  - check-untracked-changes:
      path: << parameters.translations-path >>
