Skip to content

Error: destination path already exists and is not an empty directory. #4

Description

@khoilen

Thank you for your package! However, I encountered this error:

Run holynoodle/monorepo-coverage-diff@v6
Folders:
{"branch":"/home/runner/work/nt-sketchbook/nt-sketchbook","base":"/home/runner/work/nt-sketchbook/nt-sketchbook/"}
Cloning origin/main in /home/runner/work/nt-sketchbook/nt-sketchbook/
Error: fatal: destination path '/home/runner/work/nt-sketchbook/nt-sketchbook' already exists and is not an empty directory.

Do you know why this happens? Here’s my configuration using your package:

name: Publish Coverage
uses: holynoodle/monorepo-coverage-diff@v6
with:
    token: ${{ secrets.GITHUB_TOKEN }}
    base: origin/main
    group: MyCoverageGroup
    basePath: ./
    projects: |
        style-sheet:apps/nt-stylesheet
        headless-ui:apps/nt-headless-ui
    commands: |
        npm install -g pnpm
        pnpm install --no-frozen-lockfile
        pnpm run test --coverage

Could you help me resolve this issue? Thanks! 😊

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions