name: Full Downstream

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: full_downstream
      - name: Check for clones
        run: result="exist"; for dir in $CLONE_DIR; do test ! -d $dir && result="does not exist" && break; done; echo "$result"
      - name: clean up
        run: rm -rf owner1_* && rm -rf project*
