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

Not working with forks #27

Closed
mvilanova opened this issue Mar 12, 2020 · 1 comment
Closed

Not working with forks #27

mvilanova opened this issue Mar 12, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@mvilanova
Copy link

Run samuelmeuli/lint-action@v1.2.0
Fetching all remote Git branches
From https://github.com/Netflix/dispatch
Checking out the "remove_unused_args" branch
 * [new branch]      bugfix/stable-time -> origin/bugfix/stable-time
 * [new branch]      develop            -> origin/develop
 * [new branch]      docs               -> origin/docs
 * [new branch]      feature/dashboard  -> origin/feature/dashboard
 * [new branch]      feature/update-incident-document -> origin/feature/update-incident-document
 * [new branch]      master             -> origin/master
error: pathspec 'remove_unused_args' did not match any file(s) known to git
Error: Command failed: git checkout remove_unused_args
error: pathspec 'remove_unused_args' did not match any file(s) known to git

    at checkExecSyncError (child_process.js:621:11)
    at execSync (child_process.js:657:15)
    at run (/home/runner/work/_actions/samuelmeuli/lint-action/v1.2.0/src/utils/action.js:69:18)
    at Object.checkOutBranch (/home/runner/work/_actions/samuelmeuli/lint-action/v1.2.0/src/git.js:9:2)
    at runAction (/home/runner/work/_actions/samuelmeuli/lint-action/v1.2.0/src/index.js:35:7)
    at Object.<anonymous> (/home/runner/work/_actions/samuelmeuli/lint-action/v1.2.0/src/index.js:93:1)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14) {
  status: 1,
  signal: null,
  output: [
    null,
    '',
    "error: pathspec 'remove_unused_args' did not match any file(s) known to git\n"
  ],
  pid: 3775,
  stdout: '',
  stderr: "error: pathspec 'remove_unused_args' did not match any file(s) known to git\n"
}
/home/runner/work/_actions/samuelmeuli/lint-action/v1.2.0/src/index.js:15
	throw new Error(`Exiting because of unhandled promise rejection`);
	^

Workflow file here: https://github.com/Netflix/dispatch/blob/develop/.github/workflows/list_and_test.yml

@samuelmeuli
Copy link
Collaborator

samuelmeuli commented Mar 14, 2020

Probably a duplicate of #13. I've added more helpful error messages in v1.3 (d965826).

@samuelmeuli samuelmeuli added the duplicate This issue or pull request already exists label Mar 14, 2020
@samuelmeuli samuelmeuli changed the title Fails to checkout branches from forks Not working with forks Mar 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants