Skip to content

Error running git command in GitHub actions #123

@wmonk

Description

@wmonk

Just set this up and using in GitHub Actions, and this is the error returned.

Error: Command failed with exit code 128: git rev-parse HEAD^1
fatal: ambiguous argument 'HEAD^1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
HEAD^1
    at makeError (/home/runner/work/redacted/redacted/node_modules/create-check/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/home/runner/work/redacted/redacted/node_modules/create-check/node_modules/execa/index.js:114:26)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Any ideas on this?

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