You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When repo contains only single commit, so origin/master~1 can't be resolved correctly. This exceptional case must be handled
gracefully.
...
WARNING: Unable to find a successful workflow run on 'origin/master'
We are therefore defaulting to use HEAD~1 on 'origin/master'
NOTE: You can instead make this a hard error by setting 'error-on-no-successful-workflow' on the action in your workflow.
fatal: ambiguous argument 'origin/master~1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
node:internal/errors:863
const err = new Error(message);
^
Error: Command failed: git rev-parse origin/master~1
fatal: ambiguous argument 'origin/master~1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at /runner/_work/_actions/nrwl/nx-set-shas/main/dist/index.js:1[37](https://github.com/newvoicemedia/omni-e2e-smoke-checker-test/actions/runs/5475685812/jobs/9972135144#step:8:39)58:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 128,
signal: null,
output: [
null,
'origin/master~1\n',
"fatal: ambiguous argument 'origin/master~1': unknown revision or path not in the working tree.\n" +
"Use '--' to separate paths from revisions, like this:\n" +
"'git <command> [<revision>...] -- [<file>...]'\n"
],
pid: 23709[48](https://github.com/newvoicemedia/omni-e2e-smoke-checker-test/actions/runs/5475685812/jobs/9972135144#step:8:50),
stdout: 'origin/master~1\n',
stderr: "fatal: ambiguous argument 'origin/master~1': unknown revision or path not in the working tree.\n" +
"Use '--' to separate paths from revisions, like this:\n" +
"'git <command> [<revision>...] -- [<file>...]'\n"
}
...
The text was updated successfully, but these errors were encountered:
k-paxian
changed the title
Fails When repo contains **only single** commit
Fails When repo contains only single commit
Jul 10, 2023
This command fails
nx-set-shas/find-successful-workflow.js
Line 50 in a89d5d8
When repo contains only single commit, so
origin/master~1
can't be resolved correctly. This exceptional case must be handledgracefully.
The text was updated successfully, but these errors were encountered: