Skip to content

Accept a working-directory as an input argument #282

Closed
@Nefcanto

Description

@Nefcanto

I'm trying to setup node for my GitHub Action. But I'm not working in the default directory.

I clone a repo in dir_one/rep_one and then clone another repo in dir_two/rep_two and copy a couple of files from the first repo to the second repo.

Then I want to setup Node and npm install on the second repo.

working-directory doesn't work with uses and I also tried to - run: cd dir_two/repo_two, but again build fails because it's running in its folder.

I receive this error:

Error: Dependencies lock file is not found in /home/runner/work/Site/Site. Supported file patterns: package-lock.json,yarn.lock

Please create an input argument to accept path where node should search for package.json file.

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