_module: true

checkout-and-merge-pro:
  - name: Checkout dbgate/dbgate-pro
    uses: actions/checkout@v2
    with:
      repository: dbgate/dbgate-pro
      token: ${{ secrets.GH_TOKEN }}
      path: dbgate-pro
      ref: a770b7e7a4d0ced5f1ade7cba4ba516220765648
  - name: Merge dbgate/dbgate-pro
    run: |
      mkdir ../dbgate-pro
      mv dbgate-pro/* ../dbgate-pro/
      cd ..
      mkdir dbgate-merged
      cd dbgate-pro
      cd sync
      yarn
      node sync.js --nowatch
      cd ..
