name: Single PR

on: pull_request
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: ./build-chain
        with:
          definition-file: build-chain/.github/definition-file.yaml
          flow-type: single_pr
      - name: Check for clones
        run: test -d $CLONE_DIR && echo "exist" || echo "does not exist"
      - name: clean up
        run: rm -rf owner1_* && rm -rf project*
