Skip to content

working-directory option not working #78

@MattisAbrahamsson

Description

@MattisAbrahamsson

We have a monorepo with all our frontend code in a folder, I tried specifying the folder with the working-directory option like this:

- name: Create Diff
    uses: e18e/action-dependency-diff@v1
    with:
        working-directory: frontend

but the job fails. It looks like it finds the lock files but fails when trying to find the package.json files.

Error: Failed to get file from ref "origin/main:package.json": Error: Command failed: git show origin/main:package.json
fatal: path 'frontend/package.json' exists, but not 'package.json'
hint: Did you mean 'origin/main:frontend/package.json' aka 'origin/main:./package.json'?

Here is a link to a minimal reproduction

And here is a link to the job that fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions