name: Detach Plugins

on: [push]

jobs:
  check:
    strategy:
      fail-fast: false
      matrix:
        detachPlugin: ["flygrep", "dein-ui", "vim-todo", "iedit", "scrollbar.vim"]
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master
    - name: Detach ${{ matrix.detachPlugin }}
      env:
        BOTSECRET: ${{ secrets.BOTSECRET_GITHUB }}
      run: .ci/detach_plugin.sh ${{ matrix.detachPlugin }}
