Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'reviewdog: .git exist but is not a directory' in submodule #1614

Open
kdevkr opened this issue Nov 26, 2023 · 0 comments
Open

'reviewdog: .git exist but is not a directory' in submodule #1614

kdevkr opened this issue Nov 26, 2023 · 0 comments

Comments

@kdevkr
Copy link

kdevkr commented Nov 26, 2023

name: PR Status Check

on:
  pull_request:
    branches:
      - main

jobs:
  eslint:
    name: eslint
    runs-on: ubuntu-latest # ubuntu-22.04

    strategy:
      matrix:
        node: [18]

    steps:
      ###########################################
      ## Checkout
      ###########################################
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          repository: kdevkr/platform
          token: ${{ secrets.PLATFORM_TOKEN }}
          ref: main
      - name: Checkout submodules
        run: |
          git submodule update --init monorepo
          cd monorepo/
          git checkout ${{ github.event.pull_request.head.sha }}

      - uses: pnpm/action-setup@v2
        with:
          version: 8
          run_install: false
          package_json_file: './monorepo/frontend/package.json'
      - name: Set up Node ${{ matrix.node }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{matrix.node}}
          cache: 'pnpm'
          cache-dependency-path: ./monorepo/frontend/pnpm-lock.yaml

      - uses: reviewdog/action-setup@v1
      - name: Run reviewdog
        env:
          REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          reviewdog -version
          cd monorepo/frontend
          pnpm install
          npx --no-install -c "eslint -f rdjson ./src/" | reviewdog -f=rdjson -reporter=github-pr-check
reviewdog: .git exist but is not a directory

I wonder why the above error occurs when using git-submodule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant